@Generated(value="software.amazon.awssdk:codegen") public final class DiskSnapshot extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj) |
String |
fromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
|
String |
fromDiskName()
The unique name of the source disk from which the disk snapshot was created.
|
String |
fromInstanceArn()
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
|
String |
fromInstanceName()
The unique name of the source instance from which the disk (system volume) snapshot was created.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Boolean |
isFromAutoSnapshot()
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
ResourceLocation |
location()
The AWS Region and Availability Zone where the disk snapshot was created.
|
String |
name()
The name of the disk snapshot (e.g.,
my-disk-snapshot). |
String |
progress()
The progress of the snapshot.
|
ResourceType |
resourceType()
The Lightsail resource type (e.g.,
DiskSnapshot). |
String |
resourceTypeAsString()
The Lightsail resource type (e.g.,
DiskSnapshot). |
List<SdkField<?>> |
sdkFields() |
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.
|
List<Tag> |
tags()
The tag keys and optional values for the resource.
|
DiskSnapshot.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the disk snapshot (e.g., my-disk-snapshot).
my-disk-snapshot).public final String arn()
The Amazon Resource Name (ARN) of the disk snapshot.
public final 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 final Instant createdAt()
The date when the disk snapshot was created.
public final ResourceLocation location()
The AWS Region and Availability Zone where the disk snapshot was created.
public final 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).ResourceTypepublic final 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).ResourceTypepublic final boolean hasTags()
public final List<Tag> tags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final Integer sizeInGb()
The size of the disk in GB.
public final 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().
DiskSnapshotStatepublic final 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().
DiskSnapshotStatepublic final String progress()
The progress of the snapshot.
public final String fromDiskName()
The unique name of the source disk from which the disk snapshot was created.
public final String fromDiskArn()
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
public final String fromInstanceName()
The unique name of the source instance from which the disk (system volume) snapshot was created.
public final String fromInstanceArn()
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
public final Boolean isFromAutoSnapshot()
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
public DiskSnapshot.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DiskSnapshot.Builder,DiskSnapshot>public static DiskSnapshot.Builder builder()
public static Class<? extends DiskSnapshot.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.