@Generated(value="software.amazon.awssdk:codegen") public final class DiskSnapshot extends Object implements StructuredPojo, ToCopyableBuilder<DiskSnapshot.Builder,DiskSnapshot>
Describes a block storage disk snapshot.
Modifier and Type | Class and Description |
---|---|
static interface |
DiskSnapshot.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the disk snapshot.
|
static DiskSnapshot.Builder |
builder() |
Instant |
createdAt()
The date when the disk snapshot was created.
|
boolean |
equals(Object obj) |
String |
fromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
|
String |
fromDiskName()
The unique name of the source disk from which you are creating the disk snapshot.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ResourceLocation |
location()
The AWS Region and Availability Zone where the disk snapshot was created.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of the disk snapshot (e.g.,
my-disk-snapshot ). |
String |
progress()
The progress of the disk snapshot operation.
|
ResourceType |
resourceType()
The Lightsail resource type (e.g.,
DiskSnapshot ). |
String |
resourceTypeAsString()
The Lightsail resource type (e.g.,
DiskSnapshot ). |
static Class<? extends DiskSnapshot.Builder> |
serializableBuilderClass() |
Integer |
sizeInGb()
The size of the disk in GB.
|
DiskSnapshotState |
state()
The status of the disk snapshot operation.
|
String |
stateAsString()
The status of the disk snapshot operation.
|
String |
supportCode()
The support code.
|
DiskSnapshot.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String name()
The name of the disk snapshot (e.g., my-disk-snapshot
).
my-disk-snapshot
).public String arn()
The Amazon Resource Name (ARN) of the disk snapshot.
public 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.
public Instant createdAt()
The date when the disk snapshot was created.
public ResourceLocation location()
The AWS Region and Availability Zone where the disk snapshot was created.
public ResourceType resourceType()
The Lightsail resource type (e.g., DiskSnapshot
).
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
DiskSnapshot
).ResourceType
public String resourceTypeAsString()
The Lightsail resource type (e.g., DiskSnapshot
).
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
DiskSnapshot
).ResourceType
public Integer sizeInGb()
The size of the disk in GB.
public DiskSnapshotState state()
The status of the disk snapshot operation.
If the service returns an enum value that is not available in the current SDK version, state
will return
DiskSnapshotState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
DiskSnapshotState
public String stateAsString()
The status of the disk snapshot operation.
If the service returns an enum value that is not available in the current SDK version, state
will return
DiskSnapshotState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
DiskSnapshotState
public String progress()
The progress of the disk snapshot operation.
public String fromDiskName()
The unique name of the source disk from which you are creating the disk snapshot.
public String fromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
public DiskSnapshot.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DiskSnapshot.Builder,DiskSnapshot>
public static DiskSnapshot.Builder builder()
public static Class<? extends DiskSnapshot.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.