public static interface InstanceSnapshot.Builder extends CopyableBuilder<InstanceSnapshot.Builder,InstanceSnapshot>
Modifier and Type | Method and Description |
---|---|
InstanceSnapshot.Builder |
arn(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 ). |
InstanceSnapshot.Builder |
createdAt(Instant createdAt)
The timestamp when the snapshot was created (e.g.,
1479907467.024 ). |
InstanceSnapshot.Builder |
fromAttachedDisks(Collection<Disk> fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
|
InstanceSnapshot.Builder |
fromAttachedDisks(Consumer<Disk.Builder>... fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
|
InstanceSnapshot.Builder |
fromAttachedDisks(Disk... fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
|
InstanceSnapshot.Builder |
fromBlueprintId(String fromBlueprintId)
The blueprint ID from which you created the snapshot (e.g.,
os_debian_8_3 ). |
InstanceSnapshot.Builder |
fromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (e.g.,
micro_1_0 ). |
InstanceSnapshot.Builder |
fromInstanceArn(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 ). |
InstanceSnapshot.Builder |
fromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
|
default InstanceSnapshot.Builder |
location(Consumer<ResourceLocation.Builder> location)
The region name and availability zone where you created the snapshot.
|
InstanceSnapshot.Builder |
location(ResourceLocation location)
The region name and availability zone where you created the snapshot.
|
InstanceSnapshot.Builder |
name(String name)
The name of the snapshot.
|
InstanceSnapshot.Builder |
progress(String progress)
The progress of the snapshot.
|
InstanceSnapshot.Builder |
resourceType(ResourceType resourceType)
The type of resource (usually
InstanceSnapshot ). |
InstanceSnapshot.Builder |
resourceType(String resourceType)
The type of resource (usually
InstanceSnapshot ). |
InstanceSnapshot.Builder |
sizeInGb(Integer sizeInGb)
The size in GB of the SSD.
|
InstanceSnapshot.Builder |
state(InstanceSnapshotState state)
The state the snapshot is in.
|
InstanceSnapshot.Builder |
state(String state)
The state the snapshot is in.
|
InstanceSnapshot.Builder |
supportCode(String supportCode)
The support code.
|
copy
applyMutation, build
InstanceSnapshot.Builder name(String name)
The name of the snapshot.
name
- The name of the snapshot.InstanceSnapshot.Builder arn(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
- The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).InstanceSnapshot.Builder supportCode(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.InstanceSnapshot.Builder createdAt(Instant createdAt)
The timestamp when the snapshot was created (e.g., 1479907467.024
).
createdAt
- The timestamp when the snapshot was created (e.g., 1479907467.024
).InstanceSnapshot.Builder location(ResourceLocation location)
The region name and availability zone where you created the snapshot.
location
- The region name and availability zone where you created the snapshot.default InstanceSnapshot.Builder location(Consumer<ResourceLocation.Builder> location)
The region name and availability zone where you created the snapshot.
This is a convenience that creates an instance of theResourceLocation.Builder
avoiding the need to
create one manually via ResourceLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to location(ResourceLocation)
.location
- a consumer that will call methods on ResourceLocation.Builder
location(ResourceLocation)
InstanceSnapshot.Builder resourceType(String resourceType)
The type of resource (usually InstanceSnapshot
).
resourceType
- The type of resource (usually InstanceSnapshot
).ResourceType
,
ResourceType
InstanceSnapshot.Builder resourceType(ResourceType resourceType)
The type of resource (usually InstanceSnapshot
).
resourceType
- The type of resource (usually InstanceSnapshot
).ResourceType
,
ResourceType
InstanceSnapshot.Builder state(String state)
The state the snapshot is in.
state
- The state the snapshot is in.InstanceSnapshotState
,
InstanceSnapshotState
InstanceSnapshot.Builder state(InstanceSnapshotState state)
The state the snapshot is in.
state
- The state the snapshot is in.InstanceSnapshotState
,
InstanceSnapshotState
InstanceSnapshot.Builder progress(String progress)
The progress of the snapshot.
progress
- The progress of the snapshot.InstanceSnapshot.Builder fromAttachedDisks(Collection<Disk> fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
fromAttachedDisks
- An array of disk objects containing information about all block storage disks.InstanceSnapshot.Builder fromAttachedDisks(Disk... fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
fromAttachedDisks
- An array of disk objects containing information about all block storage disks.InstanceSnapshot.Builder fromAttachedDisks(Consumer<Disk.Builder>... fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #fromAttachedDisks(List)
.fromAttachedDisks
- a consumer that will call methods on List.Builder
#fromAttachedDisks(List)
InstanceSnapshot.Builder fromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
fromInstanceName
- The instance from which the snapshot was created.InstanceSnapshot.Builder fromInstanceArn(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
).
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
).InstanceSnapshot.Builder fromBlueprintId(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.
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.InstanceSnapshot.Builder fromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (e.g., micro_1_0
).
fromBundleId
- The bundle ID from which you created the snapshot (e.g., micro_1_0
).InstanceSnapshot.Builder sizeInGb(Integer sizeInGb)
The size in GB of the SSD.
sizeInGb
- The size in GB of the SSD.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.