public static interface InstanceSnapshot.Builder extends SdkPojo, 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.
|
InstanceSnapshot.Builder |
isFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
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.
|
InstanceSnapshot.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
InstanceSnapshot.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource.
|
InstanceSnapshot.Builder |
tags(Tag... tags)
The tag keys and optional values for the resource.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInstanceSnapshot.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 method 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.Builderlocation(ResourceLocation)InstanceSnapshot.Builder resourceType(String resourceType)
The type of resource (usually InstanceSnapshot).
resourceType - The type of resource (usually InstanceSnapshot).ResourceType,
ResourceTypeInstanceSnapshot.Builder resourceType(ResourceType resourceType)
The type of resource (usually InstanceSnapshot).
resourceType - The type of resource (usually InstanceSnapshot).ResourceType,
ResourceTypeInstanceSnapshot.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Amazon
Lightsail Developer Guide.InstanceSnapshot.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Amazon
Lightsail Developer Guide.InstanceSnapshot.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) InstanceSnapshot.Builder state(String state)
The state the snapshot is in.
state - The state the snapshot is in.InstanceSnapshotState,
InstanceSnapshotStateInstanceSnapshot.Builder state(InstanceSnapshotState state)
The state the snapshot is in.
state - The state the snapshot is in.InstanceSnapshotState,
InstanceSnapshotStateInstanceSnapshot.Builder progress(String progress)
The progress of the snapshot.
This is populated only for disk snapshots, and is null for instance snapshots.
progress - The progress of the snapshot.
This is populated only for disk snapshots, and is null for instance snapshots.
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 method that creates an instance of theDisk.Builder avoiding the need to create one manually
via Disk.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #fromAttachedDisks(List.
fromAttachedDisks - a consumer that will call methods on
Disk.Builder#fromAttachedDisks(java.util.Collection) 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 isFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
isFromAutoSnapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.InstanceSnapshot.Builder sizeInGb(Integer sizeInGb)
The size in GB of the SSD.
sizeInGb - The size in GB of the SSD.Copyright © 2022. All rights reserved.