/*
* 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 neptune-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.Neptune.Model
{
///
/// Container for the parameters to the DeleteDBCluster operation.
/// The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete
/// a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered.
/// Manual DB cluster snapshots of the specified DB cluster are not deleted.
///
///
///
/// Note that the DB Cluster cannot be deleted if deletion protection is enabled. To delete
/// it, you must first set its DeletionProtection
field to False
.
///
///
public partial class DeleteDBClusterRequest : AmazonNeptuneRequest
{
private string _dbClusterIdentifier;
private string _finalDBSnapshotIdentifier;
private bool? _skipFinalSnapshot;
///
/// Gets and sets the property DBClusterIdentifier.
///
/// The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
///
///
///
/// Constraints:
///
/// -
///
/// Must match an existing DBClusterIdentifier.
///
///
///
[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 DB cluster snapshot identifier of the new DB 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:
///
/// -
///
/// Must be 1 to 255 letters, numbers, or hyphens.
///
///
-
///
/// First character must be a letter
///
///
-
///
/// Cannot end with a hyphen or contain two consecutive hyphens
///
///
///
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 DB cluster snapshot is created before the DB cluster is
/// deleted. If true
is specified, no DB cluster snapshot is created. If
/// false
is specified, a DB cluster snapshot is created before the DB cluster
/// is deleted.
///
///
///
/// You must specify a FinalDBSnapshotIdentifier
parameter if SkipFinalSnapshot
/// is false
.
///
///
///
/// 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;
}
}
}