/* * 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.docdbelastic.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateClusterSnapshotRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. *
*/ private String clusterArn; /** ** The name of the Elastic DocumentDB snapshot. *
*/ private String snapshotName; /** ** The tags to be assigned to the new Elastic DocumentDB snapshot. *
*/ private java.util.Map* The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. *
* * @param clusterArn * The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** ** The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. *
* * @return The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. */ public String getClusterArn() { return this.clusterArn; } /** ** The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. *
* * @param clusterArn * The arn of the Elastic DocumentDB cluster that the snapshot will be taken from. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateClusterSnapshotRequest withClusterArn(String clusterArn) { setClusterArn(clusterArn); return this; } /** ** The name of the Elastic DocumentDB snapshot. *
* * @param snapshotName * The name of the Elastic DocumentDB snapshot. */ public void setSnapshotName(String snapshotName) { this.snapshotName = snapshotName; } /** ** The name of the Elastic DocumentDB snapshot. *
* * @return The name of the Elastic DocumentDB snapshot. */ public String getSnapshotName() { return this.snapshotName; } /** ** The name of the Elastic DocumentDB snapshot. *
* * @param snapshotName * The name of the Elastic DocumentDB snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateClusterSnapshotRequest withSnapshotName(String snapshotName) { setSnapshotName(snapshotName); return this; } /** ** The tags to be assigned to the new Elastic DocumentDB snapshot. *
* * @return The tags to be assigned to the new Elastic DocumentDB snapshot. */ public java.util.Map* The tags to be assigned to the new Elastic DocumentDB snapshot. *
* * @param tags * The tags to be assigned to the new Elastic DocumentDB snapshot. */ public void setTags(java.util.Map* The tags to be assigned to the new Elastic DocumentDB snapshot. *
* * @param tags * The tags to be assigned to the new Elastic DocumentDB snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateClusterSnapshotRequest withTags(java.util.Map