@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DiskSnapshot extends Object implements Serializable, Cloneable, StructuredPojo
Describes a block storage disk snapshot.
Constructor and Description |
---|
DiskSnapshot() |
Modifier and Type | Method and Description |
---|---|
DiskSnapshot |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the disk snapshot.
|
Date |
getCreatedAt()
The date when the disk snapshot was created.
|
String |
getFromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
|
String |
getFromDiskName()
The unique name of the source disk from which the disk snapshot was created.
|
String |
getFromInstanceArn()
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
|
String |
getFromInstanceName()
The unique name of the source instance from which the disk (system volume) snapshot was created.
|
Boolean |
getIsFromAutoSnapshot()
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
ResourceLocation |
getLocation()
The AWS Region and Availability Zone where the disk snapshot was created.
|
String |
getName()
The name of the disk snapshot (
my-disk-snapshot ). |
String |
getProgress()
The progress of the snapshot.
|
String |
getResourceType()
The Lightsail resource type (
DiskSnapshot ). |
Integer |
getSizeInGb()
The size of the disk in GB.
|
String |
getState()
The status of the disk snapshot operation.
|
String |
getSupportCode()
The support code.
|
List<Tag> |
getTags()
The tag keys and optional values for the resource.
|
int |
hashCode() |
Boolean |
isFromAutoSnapshot()
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the disk snapshot.
|
void |
setCreatedAt(Date createdAt)
The date when the disk snapshot was created.
|
void |
setFromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
|
void |
setFromDiskName(String fromDiskName)
The unique name of the source disk from which the disk snapshot was created.
|
void |
setFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
|
void |
setFromInstanceName(String fromInstanceName)
The unique name of the source instance from which the disk (system volume) snapshot was created.
|
void |
setIsFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
void |
setLocation(ResourceLocation location)
The AWS Region and Availability Zone where the disk snapshot was created.
|
void |
setName(String name)
The name of the disk snapshot (
my-disk-snapshot ). |
void |
setProgress(String progress)
The progress of the snapshot.
|
void |
setResourceType(String resourceType)
The Lightsail resource type (
DiskSnapshot ). |
void |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB.
|
void |
setState(String state)
The status of the disk snapshot operation.
|
void |
setSupportCode(String supportCode)
The support code.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
String |
toString()
Returns a string representation of this object.
|
DiskSnapshot |
withArn(String arn)
The Amazon Resource Name (ARN) of the disk snapshot.
|
DiskSnapshot |
withCreatedAt(Date createdAt)
The date when the disk snapshot was created.
|
DiskSnapshot |
withFromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
|
DiskSnapshot |
withFromDiskName(String fromDiskName)
The unique name of the source disk from which the disk snapshot was created.
|
DiskSnapshot |
withFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
|
DiskSnapshot |
withFromInstanceName(String fromInstanceName)
The unique name of the source instance from which the disk (system volume) snapshot was created.
|
DiskSnapshot |
withIsFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
DiskSnapshot |
withLocation(ResourceLocation location)
The AWS Region and Availability Zone where the disk snapshot was created.
|
DiskSnapshot |
withName(String name)
The name of the disk snapshot (
my-disk-snapshot ). |
DiskSnapshot |
withProgress(String progress)
The progress of the snapshot.
|
DiskSnapshot |
withResourceType(ResourceType resourceType)
The Lightsail resource type (
DiskSnapshot ). |
DiskSnapshot |
withResourceType(String resourceType)
The Lightsail resource type (
DiskSnapshot ). |
DiskSnapshot |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB.
|
DiskSnapshot |
withState(DiskSnapshotState state)
The status of the disk snapshot operation.
|
DiskSnapshot |
withState(String state)
The status of the disk snapshot operation.
|
DiskSnapshot |
withSupportCode(String supportCode)
The support code.
|
DiskSnapshot |
withTags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
DiskSnapshot |
withTags(Tag... tags)
The tag keys and optional values for the resource.
|
public void setName(String name)
The name of the disk snapshot (my-disk-snapshot
).
name
- The name of the disk snapshot (my-disk-snapshot
).public String getName()
The name of the disk snapshot (my-disk-snapshot
).
my-disk-snapshot
).public DiskSnapshot withName(String name)
The name of the disk snapshot (my-disk-snapshot
).
name
- The name of the disk snapshot (my-disk-snapshot
).public void setArn(String arn)
The Amazon Resource Name (ARN) of the disk snapshot.
arn
- The Amazon Resource Name (ARN) of the disk snapshot.public String getArn()
The Amazon Resource Name (ARN) of the disk snapshot.
public DiskSnapshot withArn(String arn)
The Amazon Resource Name (ARN) of the disk snapshot.
arn
- The Amazon Resource Name (ARN) of the disk snapshot.public void setSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public String getSupportCode()
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
public DiskSnapshot withSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public void setCreatedAt(Date createdAt)
The date when the disk snapshot was created.
createdAt
- The date when the disk snapshot was created.public Date getCreatedAt()
The date when the disk snapshot was created.
public DiskSnapshot withCreatedAt(Date createdAt)
The date when the disk snapshot was created.
createdAt
- The date when the disk snapshot was created.public void setLocation(ResourceLocation location)
The AWS Region and Availability Zone where the disk snapshot was created.
location
- The AWS Region and Availability Zone where the disk snapshot was created.public ResourceLocation getLocation()
The AWS Region and Availability Zone where the disk snapshot was created.
public DiskSnapshot withLocation(ResourceLocation location)
The AWS Region and Availability Zone where the disk snapshot was created.
location
- The AWS Region and Availability Zone where the disk snapshot was created.public void setResourceType(String resourceType)
The Lightsail resource type (DiskSnapshot
).
resourceType
- The Lightsail resource type (DiskSnapshot
).ResourceType
public String getResourceType()
The Lightsail resource type (DiskSnapshot
).
DiskSnapshot
).ResourceType
public DiskSnapshot withResourceType(String resourceType)
The Lightsail resource type (DiskSnapshot
).
resourceType
- The Lightsail resource type (DiskSnapshot
).ResourceType
public DiskSnapshot withResourceType(ResourceType resourceType)
The Lightsail resource type (DiskSnapshot
).
resourceType
- The Lightsail resource type (DiskSnapshot
).ResourceType
public List<Tag> getTags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
public void setTags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Amazon Lightsail
Developer Guide.public DiskSnapshot withTags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Amazon Lightsail
Developer Guide.public DiskSnapshot withTags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Amazon Lightsail
Developer Guide.public void setSizeInGb(Integer sizeInGb)
The size of the disk in GB.
sizeInGb
- The size of the disk in GB.public Integer getSizeInGb()
The size of the disk in GB.
public DiskSnapshot withSizeInGb(Integer sizeInGb)
The size of the disk in GB.
sizeInGb
- The size of the disk in GB.public void setState(String state)
The status of the disk snapshot operation.
state
- The status of the disk snapshot operation.DiskSnapshotState
public String getState()
The status of the disk snapshot operation.
DiskSnapshotState
public DiskSnapshot withState(String state)
The status of the disk snapshot operation.
state
- The status of the disk snapshot operation.DiskSnapshotState
public DiskSnapshot withState(DiskSnapshotState state)
The status of the disk snapshot operation.
state
- The status of the disk snapshot operation.DiskSnapshotState
public void setProgress(String progress)
The progress of the snapshot.
progress
- The progress of the snapshot.public String getProgress()
The progress of the snapshot.
public DiskSnapshot withProgress(String progress)
The progress of the snapshot.
progress
- The progress of the snapshot.public void setFromDiskName(String fromDiskName)
The unique name of the source disk from which the disk snapshot was created.
fromDiskName
- The unique name of the source disk from which the disk snapshot was created.public String getFromDiskName()
The unique name of the source disk from which the disk snapshot was created.
public DiskSnapshot withFromDiskName(String fromDiskName)
The unique name of the source disk from which the disk snapshot was created.
fromDiskName
- The unique name of the source disk from which the disk snapshot was created.public void setFromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
fromDiskArn
- The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.public String getFromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
public DiskSnapshot withFromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
fromDiskArn
- The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.public void setFromInstanceName(String fromInstanceName)
The unique name of the source instance from which the disk (system volume) snapshot was created.
fromInstanceName
- The unique name of the source instance from which the disk (system volume) snapshot was created.public String getFromInstanceName()
The unique name of the source instance from which the disk (system volume) snapshot was created.
public DiskSnapshot withFromInstanceName(String fromInstanceName)
The unique name of the source instance from which the disk (system volume) snapshot was created.
fromInstanceName
- The unique name of the source instance from which the disk (system volume) snapshot was created.public void setFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
fromInstanceArn
- The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was
created.public String getFromInstanceArn()
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
public DiskSnapshot withFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
fromInstanceArn
- The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was
created.public void setIsFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
isFromAutoSnapshot
- A Boolean value indicating whether the snapshot was created from an automatic snapshot.public Boolean getIsFromAutoSnapshot()
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
public DiskSnapshot withIsFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
isFromAutoSnapshot
- A Boolean value indicating whether the snapshot was created from an automatic snapshot.public Boolean isFromAutoSnapshot()
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
public String toString()
toString
in class Object
Object.toString()
public DiskSnapshot clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.