/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the opsworkscm-2016-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.OpsWorksCM.Model { /// /// Container for the parameters to the CreateBackup operation. /// Creates an application-level backup of a server. While the server is in the BACKING_UP /// state, the server cannot be changed, and no additional backup can be created. /// /// /// /// Backups can be created for servers in RUNNING, HEALTHY, /// and UNHEALTHY states. By default, you can create a maximum of 50 manual /// backups. /// /// /// /// This operation is asynchronous. /// /// /// /// A LimitExceededException is thrown when the maximum number of manual /// backups is reached. An InvalidStateException is thrown when the server /// is not in any of the following states: RUNNING, HEALTHY, or UNHEALTHY. A ResourceNotFoundException /// is thrown when the server is not found. A ValidationException is thrown /// when parameters of the request are not valid. /// /// public partial class CreateBackupRequest : AmazonOpsWorksCMRequest { private string _description; private string _serverName; private List _tags = new List(); /// /// Gets and sets the property Description. /// /// A user-defined description of the backup. /// /// [AWSProperty(Max=10000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property ServerName. /// /// The name of the server that you want to back up. /// /// [AWSProperty(Required=true, Min=1, Max=40)] public string ServerName { get { return this._serverName; } set { this._serverName = value; } } // Check to see if ServerName property is set internal bool IsSetServerName() { return this._serverName != null; } /// /// Gets and sets the property Tags. /// /// A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM server /// backup. /// ///
  • /// /// The key cannot be empty. /// ///
  • /// /// The key can be a maximum of 127 characters, and can contain only Unicode letters, /// numbers, or separators, or the following special characters: + - = . _ : / /// /// ///
  • /// /// The value can be a maximum 255 characters, and contain only Unicode letters, numbers, /// or separators, or the following special characters: + - = . _ : / /// ///
  • /// /// Leading and trailing white spaces are trimmed from both the key and value. /// ///
  • /// /// A maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM resources. /// ///
///
[AWSProperty(Min=0, Max=200)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }