Interface InstanceSnapshot.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceSnapshot.Builder,
,InstanceSnapshot> SdkBuilder<InstanceSnapshot.Builder,
,InstanceSnapshot> SdkPojo
- Enclosing class:
InstanceSnapshot
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).The timestamp when the snapshot was created (1479907467.024
).fromAttachedDisks
(Collection<Disk> fromAttachedDisks) An array of disk objects containing information about all block storage disks.fromAttachedDisks
(Consumer<Disk.Builder>... fromAttachedDisks) An array of disk objects containing information about all block storage disks.fromAttachedDisks
(Disk... fromAttachedDisks) An array of disk objects containing information about all block storage disks.fromBlueprintId
(String fromBlueprintId) The blueprint ID from which you created the snapshot (os_debian_8_3
).fromBundleId
(String fromBundleId) The bundle ID from which you created the snapshot (micro_1_0
).fromInstanceArn
(String fromInstanceArn) The Amazon Resource Name (ARN) of the instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).fromInstanceName
(String fromInstanceName) The instance from which the snapshot was created.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.location
(ResourceLocation location) The region name and Availability Zone where you created the snapshot.The name of the snapshot.The progress of the snapshot.resourceType
(String resourceType) The type of resource (usuallyInstanceSnapshot
).resourceType
(ResourceType resourceType) The type of resource (usuallyInstanceSnapshot
).The size in GB of the SSD.The state the snapshot is in.state
(InstanceSnapshotState state) The state the snapshot is in.supportCode
(String supportCode) The support code.tags
(Collection<Tag> tags) The tag keys and optional values for the resource.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the resource.The tag keys and optional values for the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the snapshot.
- Parameters:
name
- The name of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the snapshot (
arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).- Parameters:
arn
- The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the snapshot was created (
1479907467.024
).- Parameters:
createdAt
- The timestamp when the snapshot was created (1479907467.024
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region name and Availability Zone where you created the snapshot.
- Parameters:
location
- The region name and Availability Zone where you created the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource (usually
InstanceSnapshot
).- Parameters:
resourceType
- The type of resource (usuallyInstanceSnapshot
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource (usually
InstanceSnapshot
).- Parameters:
resourceType
- The type of resource (usuallyInstanceSnapshot
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state the snapshot is in.
- Parameters:
state
- The state the snapshot is in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state the snapshot is in.
- Parameters:
state
- The state the snapshot is in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
progress
The progress of the snapshot.
This is populated only for disk snapshots, and is
null
for instance snapshots.- Parameters:
progress
- The progress of the snapshot.This is populated only for disk snapshots, and is
null
for instance snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAttachedDisks
An array of disk objects containing information about all block storage disks.
- Parameters:
fromAttachedDisks
- An array of disk objects containing information about all block storage disks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAttachedDisks
An array of disk objects containing information about all block storage disks.
- Parameters:
fromAttachedDisks
- An array of disk objects containing information about all block storage disks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaDisk.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofromAttachedDisks(List<Disk>)
.- Parameters:
fromAttachedDisks
- a consumer that will call methods onDisk.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fromInstanceName
The instance from which the snapshot was created.
- Parameters:
fromInstanceName
- The instance from which the snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromInstanceArn
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (
arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).- Parameters:
fromInstanceArn
- The Amazon Resource Name (ARN) of the instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromBlueprintId
The blueprint ID from which you created the snapshot (
os_debian_8_3
). A blueprint is a virtual private server (or instance) image used to create instances quickly.- Parameters:
fromBlueprintId
- The blueprint ID from which you created the snapshot (os_debian_8_3
). A blueprint is a virtual private server (or instance) image used to create instances quickly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromBundleId
The bundle ID from which you created the snapshot (
micro_1_0
).- Parameters:
fromBundleId
- The bundle ID from which you created the snapshot (micro_1_0
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isFromAutoSnapshot
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- Parameters:
isFromAutoSnapshot
- A Boolean value indicating whether the snapshot was created from an automatic snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sizeInGb
The size in GB of the SSD.
- Parameters:
sizeInGb
- The size in GB of the SSD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-