@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Snapshot extends Object implements Serializable, Cloneable, StructuredPojo
Represents a copy of an entire cluster as of the time when the snapshot was taken.
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
Snapshot |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The ARN (Amazon Resource Name) of the snapshot.
|
ClusterConfiguration |
getClusterConfiguration()
The configuration of the cluster from which the snapshot was taken
|
String |
getDataTiering()
Enables data tiering.
|
String |
getKmsKeyId()
The ID of the KMS key used to encrypt the snapshot.
|
String |
getName()
The name of the snapshot
|
String |
getSource()
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
|
String |
getStatus()
The status of the snapshot.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setARN(String aRN)
The ARN (Amazon Resource Name) of the snapshot.
|
void |
setClusterConfiguration(ClusterConfiguration clusterConfiguration)
The configuration of the cluster from which the snapshot was taken
|
void |
setDataTiering(String dataTiering)
Enables data tiering.
|
void |
setKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
|
void |
setName(String name)
The name of the snapshot
|
void |
setSource(String source)
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
|
void |
setStatus(String status)
The status of the snapshot.
|
String |
toString()
Returns a string representation of this object.
|
Snapshot |
withARN(String aRN)
The ARN (Amazon Resource Name) of the snapshot.
|
Snapshot |
withClusterConfiguration(ClusterConfiguration clusterConfiguration)
The configuration of the cluster from which the snapshot was taken
|
Snapshot |
withDataTiering(DataTieringStatus dataTiering)
Enables data tiering.
|
Snapshot |
withDataTiering(String dataTiering)
Enables data tiering.
|
Snapshot |
withKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
|
Snapshot |
withName(String name)
The name of the snapshot
|
Snapshot |
withSource(String source)
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
|
Snapshot |
withStatus(String status)
The status of the snapshot.
|
public void setName(String name)
The name of the snapshot
name
- The name of the snapshotpublic String getName()
The name of the snapshot
public Snapshot withName(String name)
The name of the snapshot
name
- The name of the snapshotpublic void setStatus(String status)
The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
status
- The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.public String getStatus()
The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
public Snapshot withStatus(String status)
The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
status
- The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.public void setSource(String source)
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
source
- Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).public String getSource()
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
public Snapshot withSource(String source)
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
source
- Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).public void setKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
kmsKeyId
- The ID of the KMS key used to encrypt the snapshot.public String getKmsKeyId()
The ID of the KMS key used to encrypt the snapshot.
public Snapshot withKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
kmsKeyId
- The ID of the KMS key used to encrypt the snapshot.public void setARN(String aRN)
The ARN (Amazon Resource Name) of the snapshot.
aRN
- The ARN (Amazon Resource Name) of the snapshot.public String getARN()
The ARN (Amazon Resource Name) of the snapshot.
public Snapshot withARN(String aRN)
The ARN (Amazon Resource Name) of the snapshot.
aRN
- The ARN (Amazon Resource Name) of the snapshot.public void setClusterConfiguration(ClusterConfiguration clusterConfiguration)
The configuration of the cluster from which the snapshot was taken
clusterConfiguration
- The configuration of the cluster from which the snapshot was takenpublic ClusterConfiguration getClusterConfiguration()
The configuration of the cluster from which the snapshot was taken
public Snapshot withClusterConfiguration(ClusterConfiguration clusterConfiguration)
The configuration of the cluster from which the snapshot was taken
clusterConfiguration
- The configuration of the cluster from which the snapshot was takenpublic void setDataTiering(String dataTiering)
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
dataTiering
- Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter
must be set when using r6gd nodes. For more information, see Data tiering.DataTieringStatus
public String getDataTiering()
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
DataTieringStatus
public Snapshot withDataTiering(String dataTiering)
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
dataTiering
- Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter
must be set when using r6gd nodes. For more information, see Data tiering.DataTieringStatus
public Snapshot withDataTiering(DataTieringStatus dataTiering)
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
dataTiering
- Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter
must be set when using r6gd nodes. For more information, see Data tiering.DataTieringStatus
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.