/*
* 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 ModifyClusterSnapshot operation.
/// Modifies the settings for a snapshot.
///
///
///
/// This exanmple modifies the manual retention period setting for a cluster snapshot.
///
///
public partial class ModifyClusterSnapshotRequest : AmazonRedshiftRequest
{
private bool? _force;
private int? _manualSnapshotRetentionPeriod;
private string _snapshotIdentifier;
///
/// Gets and sets the property Force.
///
/// A Boolean option to override an exception if the retention period has already passed.
///
///
public bool Force
{
get { return this._force.GetValueOrDefault(); }
set { this._force = value; }
}
// Check to see if Force property is set
internal bool IsSetForce()
{
return this._force.HasValue;
}
///
/// 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.
///
///
///
/// If the manual snapshot falls outside of the new retention period, you can specify
/// the force option to immediately delete the snapshot.
///
///
///
/// 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 SnapshotIdentifier.
///
/// The identifier of the snapshot whose setting you want to modify.
///
///
[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;
}
}
}