@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 you are creating the disk snapshot.
|
String |
getFromDiskName()
The unique name of the source disk from which you are creating the disk snapshot.
|
ResourceLocation |
getLocation()
The AWS Region and Availability Zone where the disk snapshot was created.
|
String |
getName()
The name of the disk snapshot (e.g.,
my-disk-snapshot ). |
String |
getProgress()
The progress of the disk snapshot operation.
|
String |
getResourceType()
The Lightsail resource type (e.g.,
DiskSnapshot ). |
Integer |
getSizeInGb()
The size of the disk in GB.
|
String |
getState()
The status of the disk snapshot operation.
|
String |
getSupportCode()
The support code.
|
int |
hashCode() |
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 you are creating the disk snapshot.
|
void |
setFromDiskName(String fromDiskName)
The unique name of the source disk from which you are creating the disk 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 (e.g.,
my-disk-snapshot ). |
void |
setProgress(String progress)
The progress of the disk snapshot operation.
|
void |
setResourceType(String resourceType)
The Lightsail resource type (e.g.,
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 you are creating the disk snapshot.
|
DiskSnapshot |
withFromDiskName(String fromDiskName)
The unique name of the source disk from which you are creating the disk 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 (e.g.,
my-disk-snapshot ). |
DiskSnapshot |
withProgress(String progress)
The progress of the disk snapshot operation.
|
DiskSnapshot |
withResourceType(ResourceType resourceType)
The Lightsail resource type (e.g.,
DiskSnapshot ). |
DiskSnapshot |
withResourceType(String resourceType)
The Lightsail resource type (e.g.,
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.
|
public void setName(String name)
The name of the disk snapshot (e.g., my-disk-snapshot
).
name
- The name of the disk snapshot (e.g., my-disk-snapshot
).public String getName()
The name of the disk snapshot (e.g., my-disk-snapshot
).
my-disk-snapshot
).public DiskSnapshot withName(String name)
The name of the disk snapshot (e.g., my-disk-snapshot
).
name
- The name of the disk snapshot (e.g., 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 (e.g., DiskSnapshot
).
resourceType
- The Lightsail resource type (e.g., DiskSnapshot
).ResourceType
public String getResourceType()
The Lightsail resource type (e.g., DiskSnapshot
).
DiskSnapshot
).ResourceType
public DiskSnapshot withResourceType(String resourceType)
The Lightsail resource type (e.g., DiskSnapshot
).
resourceType
- The Lightsail resource type (e.g., DiskSnapshot
).ResourceType
public DiskSnapshot withResourceType(ResourceType resourceType)
The Lightsail resource type (e.g., DiskSnapshot
).
resourceType
- The Lightsail resource type (e.g., DiskSnapshot
).ResourceType
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 disk snapshot operation.
progress
- The progress of the disk snapshot operation.public String getProgress()
The progress of the disk snapshot operation.
public DiskSnapshot withProgress(String progress)
The progress of the disk snapshot operation.
progress
- The progress of the disk snapshot operation.public void setFromDiskName(String fromDiskName)
The unique name of the source disk from which you are creating the disk snapshot.
fromDiskName
- The unique name of the source disk from which you are creating the disk snapshot.public String getFromDiskName()
The unique name of the source disk from which you are creating the disk snapshot.
public DiskSnapshot withFromDiskName(String fromDiskName)
The unique name of the source disk from which you are creating the disk snapshot.
fromDiskName
- The unique name of the source disk from which you are creating the disk snapshot.public void setFromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
fromDiskArn
- The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.public String getFromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
public DiskSnapshot withFromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
fromDiskArn
- The Amazon Resource Name (ARN) of the source disk from which you are creating the disk 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.