/* * Copyright 2018-2023 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. */ package com.amazonaws.services.docdb.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents the input to DeleteDBCluster. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeleteDBClusterRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive. *
** Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* 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
*
* 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: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
** The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive. *
** Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive. *
** Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive. *
** Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* Constraints: *
*
* Must match an existing DBClusterIdentifier
.
*
* 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
*
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 void setSkipFinalSnapshot(Boolean skipFinalSnapshot) {
this.skipFinalSnapshot = 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
*
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 Boolean getSkipFinalSnapshot() {
return this.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
*
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
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteDBClusterRequest withSkipFinalSnapshot(Boolean skipFinalSnapshot) {
setSkipFinalSnapshot(skipFinalSnapshot);
return this;
}
/**
*
* 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
*
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 Boolean isSkipFinalSnapshot() {
return this.skipFinalSnapshot;
}
/**
*
* 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: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*SkipFinalSnapshot
is
* set to false
.
* Specifying this parameter and also setting the SkipFinalShapshot
parameter to
* true
results in an error.
*
* Constraints: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* 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: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*SkipFinalSnapshot
* is set to false
.
* Specifying this parameter and also setting the SkipFinalShapshot
parameter to
* true
results in an error.
*
* Constraints: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* 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: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*SkipFinalSnapshot
is
* set to false
.
* Specifying this parameter and also setting the SkipFinalShapshot
parameter to
* true
results in an error.
*
* Constraints: *
** Must be from 1 to 255 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*