/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Returns information about a specific Elastic DocumentDB snapshot. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClusterSnapshot implements Serializable, Cloneable, StructuredPojo { /** ** The name of the Elastic DocumentDB cluster administrator. *
*/ private String adminUserName; /** ** The arn of the Elastic DocumentDB cluster. *
*/ private String clusterArn; /** ** The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). *
*/ private String clusterCreationTime; /** ** The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. *
*/ private String kmsKeyId; /** ** The arn of the Elastic DocumentDB snapshot *
*/ private String snapshotArn; /** ** The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). *
*/ private String snapshotCreationTime; /** ** The name of the Elastic DocumentDB snapshot. *
*/ private String snapshotName; /** ** The status of the Elastic DocumentDB snapshot. *
*/ private String status; /** ** A list of the IDs of subnets associated with the DB cluster snapshot. *
*/ private java.util.List* A list of the IDs of the VPC security groups associated with the cluster snapshot. *
*/ private java.util.List* The name of the Elastic DocumentDB cluster administrator. *
* * @param adminUserName * The name of the Elastic DocumentDB cluster administrator. */ public void setAdminUserName(String adminUserName) { this.adminUserName = adminUserName; } /** ** The name of the Elastic DocumentDB cluster administrator. *
* * @return The name of the Elastic DocumentDB cluster administrator. */ public String getAdminUserName() { return this.adminUserName; } /** ** The name of the Elastic DocumentDB cluster administrator. *
* * @param adminUserName * The name of the Elastic DocumentDB cluster administrator. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withAdminUserName(String adminUserName) { setAdminUserName(adminUserName); return this; } /** ** The arn of the Elastic DocumentDB cluster. *
* * @param clusterArn * The arn of the Elastic DocumentDB cluster. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** ** The arn of the Elastic DocumentDB cluster. *
* * @return The arn of the Elastic DocumentDB cluster. */ public String getClusterArn() { return this.clusterArn; } /** ** The arn of the Elastic DocumentDB cluster. *
* * @param clusterArn * The arn of the Elastic DocumentDB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withClusterArn(String clusterArn) { setClusterArn(clusterArn); return this; } /** ** The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). *
* * @param clusterCreationTime * The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). */ public void setClusterCreationTime(String clusterCreationTime) { this.clusterCreationTime = clusterCreationTime; } /** ** The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). *
* * @return The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). */ public String getClusterCreationTime() { return this.clusterCreationTime; } /** ** The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). *
* * @param clusterCreationTime * The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withClusterCreationTime(String clusterCreationTime) { setClusterCreationTime(clusterCreationTime); return this; } /** ** The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. *
* * @param kmsKeyId * The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. *
* * @return The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. */ public String getKmsKeyId() { return this.kmsKeyId; } /** ** The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. *
* * @param kmsKeyId * The KMS key identifier to use to encrypt the Elastic DocumentDB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** ** The arn of the Elastic DocumentDB snapshot *
* * @param snapshotArn * The arn of the Elastic DocumentDB snapshot */ public void setSnapshotArn(String snapshotArn) { this.snapshotArn = snapshotArn; } /** ** The arn of the Elastic DocumentDB snapshot *
* * @return The arn of the Elastic DocumentDB snapshot */ public String getSnapshotArn() { return this.snapshotArn; } /** ** The arn of the Elastic DocumentDB snapshot *
* * @param snapshotArn * The arn of the Elastic DocumentDB snapshot * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withSnapshotArn(String snapshotArn) { setSnapshotArn(snapshotArn); return this; } /** ** The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). *
* * @param snapshotCreationTime * The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). */ public void setSnapshotCreationTime(String snapshotCreationTime) { this.snapshotCreationTime = snapshotCreationTime; } /** ** The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). *
* * @return The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). */ public String getSnapshotCreationTime() { return this.snapshotCreationTime; } /** ** The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). *
* * @param snapshotCreationTime * The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withSnapshotCreationTime(String snapshotCreationTime) { setSnapshotCreationTime(snapshotCreationTime); 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 ClusterSnapshot withSnapshotName(String snapshotName) { setSnapshotName(snapshotName); return this; } /** ** The status of the Elastic DocumentDB snapshot. *
* * @param status * The status of the Elastic DocumentDB snapshot. * @see Status */ public void setStatus(String status) { this.status = status; } /** ** The status of the Elastic DocumentDB snapshot. *
* * @return The status of the Elastic DocumentDB snapshot. * @see Status */ public String getStatus() { return this.status; } /** ** The status of the Elastic DocumentDB snapshot. *
* * @param status * The status of the Elastic DocumentDB snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public ClusterSnapshot withStatus(String status) { setStatus(status); return this; } /** ** The status of the Elastic DocumentDB snapshot. *
* * @param status * The status of the Elastic DocumentDB snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public ClusterSnapshot withStatus(Status status) { this.status = status.toString(); return this; } /** ** A list of the IDs of subnets associated with the DB cluster snapshot. *
* * @return A list of the IDs of subnets associated with the DB cluster snapshot. */ public java.util.List* A list of the IDs of subnets associated with the DB cluster snapshot. *
* * @param subnetIds * A list of the IDs of subnets associated with the DB cluster snapshot. */ public void setSubnetIds(java.util.Collection* A list of the IDs of subnets associated with the DB cluster snapshot. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetIds * A list of the IDs of subnets associated with the DB cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* A list of the IDs of subnets associated with the DB cluster snapshot. *
* * @param subnetIds * A list of the IDs of subnets associated with the DB cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withSubnetIds(java.util.Collection* A list of the IDs of the VPC security groups associated with the cluster snapshot. *
* * @return A list of the IDs of the VPC security groups associated with the cluster snapshot. */ public java.util.List* A list of the IDs of the VPC security groups associated with the cluster snapshot. *
* * @param vpcSecurityGroupIds * A list of the IDs of the VPC security groups associated with the cluster snapshot. */ public void setVpcSecurityGroupIds(java.util.Collection* A list of the IDs of the VPC security groups associated with the cluster snapshot. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *
* * @param vpcSecurityGroupIds * A list of the IDs of the VPC security groups associated with the cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new java.util.ArrayList* A list of the IDs of the VPC security groups associated with the cluster snapshot. *
* * @param vpcSecurityGroupIds * A list of the IDs of the VPC security groups associated with the cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshot withVpcSecurityGroupIds(java.util.Collection