All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.docdbelastic.model.ClusterSnapshotInList Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DocumentDB Elastic Clusters module holds the client classes that are used for communicating with Amazon DocumentDB Elastic Clusters Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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;

/**
 * 

* A list of elastic cluster snapshots. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClusterSnapshotInList implements Serializable, Cloneable, StructuredPojo { /** *

* The ARN identifier of the elastic cluster. *

*/ private String clusterArn; /** *

* The ARN identifier of the elastic cluster snapshot. *

*/ private String snapshotArn; /** *

* The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). *

*/ private String snapshotCreationTime; /** *

* The name of the elastic cluster snapshot. *

*/ private String snapshotName; /** *

* The status of the elastic cluster snapshot. *

*/ private String status; /** *

* The ARN identifier of the elastic cluster. *

* * @param clusterArn * The ARN identifier of the elastic cluster. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** *

* The ARN identifier of the elastic cluster. *

* * @return The ARN identifier of the elastic cluster. */ public String getClusterArn() { return this.clusterArn; } /** *

* The ARN identifier of the elastic cluster. *

* * @param clusterArn * The ARN identifier of the elastic cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshotInList withClusterArn(String clusterArn) { setClusterArn(clusterArn); return this; } /** *

* The ARN identifier of the elastic cluster snapshot. *

* * @param snapshotArn * The ARN identifier of the elastic cluster snapshot. */ public void setSnapshotArn(String snapshotArn) { this.snapshotArn = snapshotArn; } /** *

* The ARN identifier of the elastic cluster snapshot. *

* * @return The ARN identifier of the elastic cluster snapshot. */ public String getSnapshotArn() { return this.snapshotArn; } /** *

* The ARN identifier of the elastic cluster snapshot. *

* * @param snapshotArn * The ARN identifier of the elastic cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshotInList withSnapshotArn(String snapshotArn) { setSnapshotArn(snapshotArn); return this; } /** *

* The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). *

* * @param snapshotCreationTime * The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). */ public void setSnapshotCreationTime(String snapshotCreationTime) { this.snapshotCreationTime = snapshotCreationTime; } /** *

* The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). *

* * @return The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). */ public String getSnapshotCreationTime() { return this.snapshotCreationTime; } /** *

* The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). *

* * @param snapshotCreationTime * The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshotInList withSnapshotCreationTime(String snapshotCreationTime) { setSnapshotCreationTime(snapshotCreationTime); return this; } /** *

* The name of the elastic cluster snapshot. *

* * @param snapshotName * The name of the elastic cluster snapshot. */ public void setSnapshotName(String snapshotName) { this.snapshotName = snapshotName; } /** *

* The name of the elastic cluster snapshot. *

* * @return The name of the elastic cluster snapshot. */ public String getSnapshotName() { return this.snapshotName; } /** *

* The name of the elastic cluster snapshot. *

* * @param snapshotName * The name of the elastic cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterSnapshotInList withSnapshotName(String snapshotName) { setSnapshotName(snapshotName); return this; } /** *

* The status of the elastic cluster snapshot. *

* * @param status * The status of the elastic cluster snapshot. * @see Status */ public void setStatus(String status) { this.status = status; } /** *

* The status of the elastic cluster snapshot. *

* * @return The status of the elastic cluster snapshot. * @see Status */ public String getStatus() { return this.status; } /** *

* The status of the elastic cluster snapshot. *

* * @param status * The status of the elastic cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public ClusterSnapshotInList withStatus(String status) { setStatus(status); return this; } /** *

* The status of the elastic cluster snapshot. *

* * @param status * The status of the elastic cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public ClusterSnapshotInList withStatus(Status status) { this.status = status.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClusterArn() != null) sb.append("ClusterArn: ").append(getClusterArn()).append(","); if (getSnapshotArn() != null) sb.append("SnapshotArn: ").append(getSnapshotArn()).append(","); if (getSnapshotCreationTime() != null) sb.append("SnapshotCreationTime: ").append(getSnapshotCreationTime()).append(","); if (getSnapshotName() != null) sb.append("SnapshotName: ").append(getSnapshotName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ClusterSnapshotInList == false) return false; ClusterSnapshotInList other = (ClusterSnapshotInList) obj; if (other.getClusterArn() == null ^ this.getClusterArn() == null) return false; if (other.getClusterArn() != null && other.getClusterArn().equals(this.getClusterArn()) == false) return false; if (other.getSnapshotArn() == null ^ this.getSnapshotArn() == null) return false; if (other.getSnapshotArn() != null && other.getSnapshotArn().equals(this.getSnapshotArn()) == false) return false; if (other.getSnapshotCreationTime() == null ^ this.getSnapshotCreationTime() == null) return false; if (other.getSnapshotCreationTime() != null && other.getSnapshotCreationTime().equals(this.getSnapshotCreationTime()) == false) return false; if (other.getSnapshotName() == null ^ this.getSnapshotName() == null) return false; if (other.getSnapshotName() != null && other.getSnapshotName().equals(this.getSnapshotName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterArn() == null) ? 0 : getClusterArn().hashCode()); hashCode = prime * hashCode + ((getSnapshotArn() == null) ? 0 : getSnapshotArn().hashCode()); hashCode = prime * hashCode + ((getSnapshotCreationTime() == null) ? 0 : getSnapshotCreationTime().hashCode()); hashCode = prime * hashCode + ((getSnapshotName() == null) ? 0 : getSnapshotName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public ClusterSnapshotInList clone() { try { return (ClusterSnapshotInList) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.docdbelastic.model.transform.ClusterSnapshotInListMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy