/*
* 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 BatchModifyClusterSnapshots operation.
/// Modifies the settings for a set of cluster snapshots.
///
public partial class BatchModifyClusterSnapshotsRequest : AmazonRedshiftRequest
{
private bool? _force;
private int? _manualSnapshotRetentionPeriod;
private List _snapshotIdentifierList = new List();
///
/// Gets and sets the property Force.
///
/// A boolean value indicating whether to override an exception if the retention period
/// has 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 you specify the value -1,
/// the manual snapshot is retained indefinitely.
///
///
///
/// The number must be either -1 or an integer between 1 and 3,653.
///
///
///
/// If you decrease the manual snapshot retention period from its current value, existing
/// manual snapshots that fall outside of the new retention period will return an error.
/// If you want to suppress the errors and delete the snapshots, use the force option.
///
///
///
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 SnapshotIdentifierList.
///
/// A list of snapshot identifiers you want to modify.
///
///
[AWSProperty(Required=true)]
public List SnapshotIdentifierList
{
get { return this._snapshotIdentifierList; }
set { this._snapshotIdentifierList = value; }
}
// Check to see if SnapshotIdentifierList property is set
internal bool IsSetSnapshotIdentifierList()
{
return this._snapshotIdentifierList != null && this._snapshotIdentifierList.Count > 0;
}
}
}