/* * 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 { /// /// Returns the destination region and retention period that are configured for cross-region /// snapshot copy. /// public partial class ClusterSnapshotCopyStatus { private string _destinationRegion; private int? _manualSnapshotRetentionPeriod; private long? _retentionPeriod; private string _snapshotCopyGrantName; /// /// Gets and sets the property DestinationRegion. /// /// The destination region that snapshots are automatically copied to when cross-region /// snapshot copy is enabled. /// /// [AWSProperty(Max=2147483647)] public string DestinationRegion { get { return this._destinationRegion; } set { this._destinationRegion = value; } } // Check to see if DestinationRegion property is set internal bool IsSetDestinationRegion() { return this._destinationRegion != null; } /// /// Gets and sets the property ManualSnapshotRetentionPeriod. /// /// The number of days that automated snapshots are retained in the destination region /// after they are copied from a source region. 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. /// /// 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 RetentionPeriod. /// /// The number of days that automated snapshots are retained in the destination region /// after they are copied from a source region. /// /// public long RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// /// Gets and sets the property SnapshotCopyGrantName. /// /// The name of the snapshot copy grant. /// /// [AWSProperty(Max=2147483647)] public string SnapshotCopyGrantName { get { return this._snapshotCopyGrantName; } set { this._snapshotCopyGrantName = value; } } // Check to see if SnapshotCopyGrantName property is set internal bool IsSetSnapshotCopyGrantName() { return this._snapshotCopyGrantName != null; } } }