/* * 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 of CreateDBClusterSnapshot. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDBClusterSnapshotRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The identifier of the cluster snapshot. This parameter is stored as a lowercase string. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
*
* The identifier of the cluster to create a snapshot for. This parameter is not case sensitive. *
** Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
*
* The tags to be assigned to the cluster snapshot. *
*/ private java.util.List* The identifier of the cluster snapshot. This parameter is stored as a lowercase string. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
*
* Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
*/
public void setDBClusterSnapshotIdentifier(String dBClusterSnapshotIdentifier) {
this.dBClusterSnapshotIdentifier = dBClusterSnapshotIdentifier;
}
/**
*
* The identifier of the cluster snapshot. This parameter is stored as a lowercase string. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
*
* Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
*/
public String getDBClusterSnapshotIdentifier() {
return this.dBClusterSnapshotIdentifier;
}
/**
*
* The identifier of the cluster snapshot. This parameter is stored as a lowercase string. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
*
* Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** The first character must be a letter. *
** Cannot end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster-snapshot1
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDBClusterSnapshotRequest withDBClusterSnapshotIdentifier(String dBClusterSnapshotIdentifier) {
setDBClusterSnapshotIdentifier(dBClusterSnapshotIdentifier);
return this;
}
/**
*
* The identifier of the cluster to create a snapshot for. This parameter is not case sensitive. *
** Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
*
* Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* The identifier of the cluster to create a snapshot for. This parameter is not case sensitive. *
** Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
*
* Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* The identifier of the cluster to create a snapshot for. This parameter is not case sensitive. *
** Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
*
* Constraints: *
*
* Must match the identifier of an existing DBCluster
.
*
* Example: my-cluster
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDBClusterSnapshotRequest withDBClusterIdentifier(String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
*
* The tags to be assigned to the cluster snapshot. *
* * @return The tags to be assigned to the cluster snapshot. */ public java.util.List* The tags to be assigned to the cluster snapshot. *
* * @param tags * The tags to be assigned to the cluster snapshot. */ public void setTags(java.util.Collection* The tags to be assigned to the cluster snapshot. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The tags to be assigned to the cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterSnapshotRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The tags to be assigned to the cluster snapshot. *
* * @param tags * The tags to be assigned to the cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterSnapshotRequest withTags(java.util.Collection