/* * 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 rds-2014-10-31.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.RDS.Model { /// /// Container for the parameters to the CreateDBSnapshot operation. /// Creates a snapshot of a DB instance. The source DB instance must be in the available /// or storage-optimization state. /// public partial class CreateDBSnapshotRequest : AmazonRDSRequest { private string _dbInstanceIdentifier; private string _dbSnapshotIdentifier; private List _tags = new List(); /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public CreateDBSnapshotRequest() { } /// /// Instantiates CreateDBSnapshotRequest with the parameterized properties /// /// The identifier for the DB snapshot. Constraints: Example: my-snapshot-id /// The identifier of the DB instance that you want to create the snapshot of. Constraints: public CreateDBSnapshotRequest(string dbSnapshotIdentifier, string dbInstanceIdentifier) { _dbSnapshotIdentifier = dbSnapshotIdentifier; _dbInstanceIdentifier = dbInstanceIdentifier; } /// /// Gets and sets the property DBInstanceIdentifier. /// /// The identifier of the DB instance that you want to create the snapshot of. /// /// /// /// Constraints: /// ///
  • /// /// Must match the identifier of an existing DBInstance. /// ///
///
[AWSProperty(Required=true)] public string DBInstanceIdentifier { get { return this._dbInstanceIdentifier; } set { this._dbInstanceIdentifier = value; } } // Check to see if DBInstanceIdentifier property is set internal bool IsSetDBInstanceIdentifier() { return this._dbInstanceIdentifier != null; } /// /// Gets and sets the property DBSnapshotIdentifier. /// /// The identifier for the DB snapshot. /// /// /// /// Constraints: /// ///
  • /// /// Can't be null, empty, or blank /// ///
  • /// /// Must contain from 1 to 255 letters, numbers, or hyphens /// ///
  • /// /// First character must be a letter /// ///
  • /// /// Can't end with a hyphen or contain two consecutive hyphens /// ///
/// /// Example: my-snapshot-id /// ///
[AWSProperty(Required=true)] public string DBSnapshotIdentifier { get { return this._dbSnapshotIdentifier; } set { this._dbSnapshotIdentifier = value; } } // Check to see if DBSnapshotIdentifier property is set internal bool IsSetDBSnapshotIdentifier() { return this._dbSnapshotIdentifier != null; } /// /// Gets and sets the property Tags. /// 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; } } }