Interface DiskSnapshot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DiskSnapshot.Builder,DiskSnapshot>,SdkBuilder<DiskSnapshot.Builder,DiskSnapshot>,SdkPojo
- Enclosing class:
- DiskSnapshot
public static interface DiskSnapshot.Builder extends SdkPojo, CopyableBuilder<DiskSnapshot.Builder,DiskSnapshot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DiskSnapshot.Builderarn(String arn)The Amazon Resource Name (ARN) of the disk snapshot.DiskSnapshot.BuildercreatedAt(Instant createdAt)The date when the disk snapshot was created.DiskSnapshot.BuilderfromDiskArn(String fromDiskArn)The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.DiskSnapshot.BuilderfromDiskName(String fromDiskName)The unique name of the source disk from which the disk snapshot was created.DiskSnapshot.BuilderfromInstanceArn(String fromInstanceArn)The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.DiskSnapshot.BuilderfromInstanceName(String fromInstanceName)The unique name of the source instance from which the disk (system volume) snapshot was created.DiskSnapshot.BuilderisFromAutoSnapshot(Boolean isFromAutoSnapshot)A Boolean value indicating whether the snapshot was created from an automatic snapshot.default DiskSnapshot.Builderlocation(Consumer<ResourceLocation.Builder> location)The AWS Region and Availability Zone where the disk snapshot was created.DiskSnapshot.Builderlocation(ResourceLocation location)The AWS Region and Availability Zone where the disk snapshot was created.DiskSnapshot.Buildername(String name)The name of the disk snapshot (my-disk-snapshot).DiskSnapshot.Builderprogress(String progress)The progress of the snapshot.DiskSnapshot.BuilderresourceType(String resourceType)The Lightsail resource type (DiskSnapshot).DiskSnapshot.BuilderresourceType(ResourceType resourceType)The Lightsail resource type (DiskSnapshot).DiskSnapshot.BuildersizeInGb(Integer sizeInGb)The size of the disk in GB.DiskSnapshot.Builderstate(String state)The status of the disk snapshot operation.DiskSnapshot.Builderstate(DiskSnapshotState state)The status of the disk snapshot operation.DiskSnapshot.BuildersupportCode(String supportCode)The support code.DiskSnapshot.Buildertags(Collection<Tag> tags)The tag keys and optional values for the resource.DiskSnapshot.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the resource.DiskSnapshot.Buildertags(Tag... tags)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 Detail
-
name
DiskSnapshot.Builder name(String 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
DiskSnapshot.Builder arn(String 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
DiskSnapshot.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.
- 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
DiskSnapshot.Builder createdAt(Instant 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
DiskSnapshot.Builder location(ResourceLocation 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
default DiskSnapshot.Builder location(Consumer<ResourceLocation.Builder> location)
The AWS Region and Availability Zone where the disk snapshot was created.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,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:
location(ResourceLocation)
-
resourceType
DiskSnapshot.Builder resourceType(String 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,ResourceType
-
resourceType
DiskSnapshot.Builder resourceType(ResourceType 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,ResourceType
-
tags
DiskSnapshot.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.
- 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
DiskSnapshot.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.
- 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
DiskSnapshot.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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
sizeInGb
DiskSnapshot.Builder sizeInGb(Integer 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
DiskSnapshot.Builder state(String 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:
DiskSnapshotState,DiskSnapshotState
-
state
DiskSnapshot.Builder state(DiskSnapshotState 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:
DiskSnapshotState,DiskSnapshotState
-
progress
DiskSnapshot.Builder progress(String 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
DiskSnapshot.Builder fromDiskName(String 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
DiskSnapshot.Builder fromDiskArn(String 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
DiskSnapshot.Builder fromInstanceName(String 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
DiskSnapshot.Builder fromInstanceArn(String 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
DiskSnapshot.Builder isFromAutoSnapshot(Boolean 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.
-
-