/* * 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 redshift-2012-12-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.Redshift.Model { /// /// Container for the parameters to the CreateClusterSnapshot operation. /// Creates a manual snapshot of the specified cluster. The cluster must be in the available /// state. /// /// /// /// For more information about working with snapshots, go to Amazon /// Redshift Snapshots in the Amazon Redshift Cluster Management Guide. /// /// public partial class CreateClusterSnapshotRequest : AmazonRedshiftRequest { private string _clusterIdentifier; private int? _manualSnapshotRetentionPeriod; private string _snapshotIdentifier; private List _tags = new List(); /// /// Gets and sets the property ClusterIdentifier. /// /// The cluster identifier for which you want a snapshot. /// /// [AWSProperty(Required=true, Max=2147483647)] public string ClusterIdentifier { get { return this._clusterIdentifier; } set { this._clusterIdentifier = value; } } // Check to see if ClusterIdentifier property is set internal bool IsSetClusterIdentifier() { return this._clusterIdentifier != null; } /// /// Gets and sets the property ManualSnapshotRetentionPeriod. /// /// The number of days that a manual snapshot is retained. If the value is -1, the manual /// snapshot is retained indefinitely. /// /// /// /// The value must be either -1 or an integer between 1 and 3,653. /// /// /// /// The default value is -1. /// /// public int ManualSnapshotRetentionPeriod { get { return this._manualSnapshotRetentionPeriod.GetValueOrDefault(); } set { this._manualSnapshotRetentionPeriod = value; } } // Check to see if ManualSnapshotRetentionPeriod property is set internal bool IsSetManualSnapshotRetentionPeriod() { return this._manualSnapshotRetentionPeriod.HasValue; } /// /// Gets and sets the property SnapshotIdentifier. /// /// A unique identifier for the snapshot that you are requesting. This identifier must /// be unique for all snapshots within the Amazon Web Services account. /// /// /// /// Constraints: /// ///
  • /// /// Cannot be null, empty, or blank /// ///
  • /// /// Must contain from 1 to 255 alphanumeric characters or hyphens /// ///
  • /// /// First character must be a letter /// ///
  • /// /// Cannot end with a hyphen or contain two consecutive hyphens /// ///
/// /// Example: my-snapshot-id /// ///
[AWSProperty(Required=true, Max=2147483647)] public string SnapshotIdentifier { get { return this._snapshotIdentifier; } set { this._snapshotIdentifier = value; } } // Check to see if SnapshotIdentifier property is set internal bool IsSetSnapshotIdentifier() { return this._snapshotIdentifier != null; } /// /// Gets and sets the property Tags. /// /// A list of tag instances. /// /// 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; } } }