/* * 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 docdb-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.DocDB.Model { /// /// Container for the parameters to the DeleteDBCluster operation. /// Deletes a previously provisioned cluster. When you delete a cluster, all automated /// backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots /// of the specified cluster are not deleted. /// public partial class DeleteDBClusterRequest : AmazonDocDBRequest { private string _dbClusterIdentifier; private string _finalDBSnapshotIdentifier; private bool? _skipFinalSnapshot; /// /// Gets and sets the property DBClusterIdentifier. /// /// The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive. /// /// /// /// Constraints: /// /// /// [AWSProperty(Required=true)] public string DBClusterIdentifier { get { return this._dbClusterIdentifier; } set { this._dbClusterIdentifier = value; } } // Check to see if DBClusterIdentifier property is set internal bool IsSetDBClusterIdentifier() { return this._dbClusterIdentifier != null; } /// /// Gets and sets the property FinalDBSnapshotIdentifier. /// /// The cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot /// is set to false. /// /// /// /// Specifying this parameter and also setting the SkipFinalShapshot parameter /// to true results in an error. /// /// /// /// Constraints: /// /// /// public string FinalDBSnapshotIdentifier { get { return this._finalDBSnapshotIdentifier; } set { this._finalDBSnapshotIdentifier = value; } } // Check to see if FinalDBSnapshotIdentifier property is set internal bool IsSetFinalDBSnapshotIdentifier() { return this._finalDBSnapshotIdentifier != null; } /// /// Gets and sets the property SkipFinalSnapshot. /// /// Determines whether a final cluster snapshot is created before the cluster is deleted. /// If true is specified, no cluster snapshot is created. If false /// is specified, a cluster snapshot is created before the DB cluster is deleted. /// /// /// /// If SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier /// parameter. /// /// /// /// Default: false /// /// public bool SkipFinalSnapshot { get { return this._skipFinalSnapshot.GetValueOrDefault(); } set { this._skipFinalSnapshot = value; } } // Check to see if SkipFinalSnapshot property is set internal bool IsSetSkipFinalSnapshot() { return this._skipFinalSnapshot.HasValue; } } }