@Generated(value="software.amazon.awssdk:codegen") public class InstanceSnapshot extends Object implements StructuredPojo, ToCopyableBuilder<InstanceSnapshot.Builder,InstanceSnapshot>
Describes the snapshot of the virtual private server, or instance.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceSnapshot.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE ). |
static InstanceSnapshot.Builder |
builder() |
Instant |
createdAt()
The timestamp when the snapshot was created (e.g.,
1479907467.024 ). |
boolean |
equals(Object obj) |
List<Disk> |
fromAttachedDisks()
An array of disk objects containing information about all block storage disks.
|
String |
fromBlueprintId()
The blueprint ID from which you created the snapshot (e.g.,
os_debian_8_3 ). |
String |
fromBundleId()
The bundle ID from which you created the snapshot (e.g.,
micro_1_0 ). |
String |
fromInstanceArn()
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE ). |
String |
fromInstanceName()
The instance from which the snapshot was created.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ResourceLocation |
location()
The region name and availability zone where you created the snapshot.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of the snapshot.
|
String |
progress()
The progress of the snapshot.
|
ResourceType |
resourceType()
The type of resource (usually
InstanceSnapshot ). |
String |
resourceTypeString()
The type of resource (usually
InstanceSnapshot ). |
static Class<? extends InstanceSnapshot.Builder> |
serializableBuilderClass() |
Integer |
sizeInGb()
The size in GB of the SSD.
|
InstanceSnapshotState |
state()
The state the snapshot is in.
|
String |
stateString()
The state the snapshot is in.
|
String |
supportCode()
The support code.
|
InstanceSnapshot.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 snapshot.
public String arn()
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).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 timestamp when the snapshot was created (e.g., 1479907467.024
).
1479907467.024
).public ResourceLocation location()
The region name and availability zone where you created the snapshot.
public ResourceType resourceType()
The type of resource (usually InstanceSnapshot
).
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
resourceTypeString()
.
InstanceSnapshot
).ResourceType
public String resourceTypeString()
The type of resource (usually InstanceSnapshot
).
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
resourceTypeString()
.
InstanceSnapshot
).ResourceType
public InstanceSnapshotState state()
The state the snapshot is in.
If the service returns an enum value that is not available in the current SDK version, state
will return
InstanceSnapshotState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateString()
.
InstanceSnapshotState
public String stateString()
The state the snapshot is in.
If the service returns an enum value that is not available in the current SDK version, state
will return
InstanceSnapshotState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateString()
.
InstanceSnapshotState
public String progress()
The progress of the snapshot.
public List<Disk> fromAttachedDisks()
An array of disk objects containing information about all block storage disks.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String fromInstanceName()
The instance from which the snapshot was created.
public String fromInstanceArn()
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).public String fromBlueprintId()
The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
). A blueprint is a virtual
private server (or instance) image used to create instances quickly.
os_debian_8_3
). A blueprint is a
virtual private server (or instance) image used to create instances quickly.public String fromBundleId()
The bundle ID from which you created the snapshot (e.g., micro_1_0
).
micro_1_0
).public Integer sizeInGb()
The size in GB of the SSD.
public InstanceSnapshot.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstanceSnapshot.Builder,InstanceSnapshot>
public static InstanceSnapshot.Builder builder()
public static Class<? extends InstanceSnapshot.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.