Interface DiskSnapshot.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DiskSnapshot.Builder,
,DiskSnapshot> SdkBuilder<DiskSnapshot.Builder,
,DiskSnapshot> SdkPojo
- Enclosing class:
DiskSnapshot
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the disk snapshot.The date when the disk snapshot was created.fromDiskArn
(String fromDiskArn) The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.fromDiskName
(String fromDiskName) The unique name of the source disk from which the disk snapshot was created.fromInstanceArn
(String fromInstanceArn) The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.fromInstanceName
(String fromInstanceName) The unique name of the source instance from which the disk (system volume) snapshot was created.isFromAutoSnapshot
(Boolean isFromAutoSnapshot) A Boolean value indicating whether the snapshot was created from an automatic snapshot.default DiskSnapshot.Builder
location
(Consumer<ResourceLocation.Builder> location) The AWS Region and Availability Zone where the disk snapshot was created.location
(ResourceLocation location) The AWS Region and Availability Zone where the disk snapshot was created.The name of the disk snapshot (my-disk-snapshot
).The progress of the snapshot.resourceType
(String resourceType) The Lightsail resource type (DiskSnapshot
).resourceType
(ResourceType resourceType) The Lightsail resource type (DiskSnapshot
).The size of the disk in GB.The status of the disk snapshot operation.state
(DiskSnapshotState state) The status of the disk snapshot operation.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 disk snapshot (
my-disk-snapshot
).- Parameters:
name
- The name of the disk snapshot (my-disk-snapshot
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the disk snapshot.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the disk snapshot.- 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 date when the disk snapshot was created.
- Parameters:
createdAt
- The date when the disk snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The AWS Region and Availability Zone where the disk snapshot was created.
- Parameters:
location
- The AWS Region and Availability Zone where the disk snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The AWS Region and Availability Zone where the disk snapshot was created.
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 Lightsail resource type (
DiskSnapshot
).- Parameters:
resourceType
- The Lightsail resource type (DiskSnapshot
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The Lightsail resource type (
DiskSnapshot
).- Parameters:
resourceType
- The Lightsail resource type (DiskSnapshot
).- 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:
-
sizeInGb
The size of the disk in GB.
- Parameters:
sizeInGb
- The size of the disk in GB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The status of the disk snapshot operation.
- Parameters:
state
- The status of the disk snapshot operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The status of the disk snapshot operation.
- Parameters:
state
- The status of the disk snapshot operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
progress
The progress of the snapshot.
- Parameters:
progress
- The progress of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromDiskName
The unique name of the source disk from which the disk snapshot was created.
- Parameters:
fromDiskName
- The unique name of the source disk from which the disk snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromDiskArn
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
- Parameters:
fromDiskArn
- The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromInstanceName
The unique name of the source instance from which the disk (system volume) snapshot was created.
- Parameters:
fromInstanceName
- The unique name of the source instance from which the disk (system volume) 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 source instance from which the disk (system volume) snapshot was created.
- Parameters:
fromInstanceArn
- The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.- 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.
-