public static interface DiskSnapshot.Builder extends CopyableBuilder<DiskSnapshot.Builder,DiskSnapshot>
Modifier and Type | Method and Description |
---|---|
DiskSnapshot.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the disk snapshot.
|
DiskSnapshot.Builder |
createdAt(Instant createdAt)
The date when the disk snapshot was created.
|
DiskSnapshot.Builder |
fromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
|
DiskSnapshot.Builder |
fromDiskName(String fromDiskName)
The unique name of the source disk from which you are creating the disk snapshot.
|
default DiskSnapshot.Builder |
location(Consumer<ResourceLocation.Builder> location)
The AWS Region and Availability Zone where the disk snapshot was created.
|
DiskSnapshot.Builder |
location(ResourceLocation location)
The AWS Region and Availability Zone where the disk snapshot was created.
|
DiskSnapshot.Builder |
name(String name)
The name of the disk snapshot (e.g.,
my-disk-snapshot ). |
DiskSnapshot.Builder |
progress(String progress)
The progress of the disk snapshot operation.
|
DiskSnapshot.Builder |
resourceType(ResourceType resourceType)
The Lightsail resource type (e.g.,
DiskSnapshot ). |
DiskSnapshot.Builder |
resourceType(String resourceType)
The Lightsail resource type (e.g.,
DiskSnapshot ). |
DiskSnapshot.Builder |
sizeInGb(Integer sizeInGb)
The size of the disk in GB.
|
DiskSnapshot.Builder |
state(DiskSnapshotState state)
The status of the disk snapshot operation.
|
DiskSnapshot.Builder |
state(String state)
The status of the disk snapshot operation.
|
DiskSnapshot.Builder |
supportCode(String supportCode)
The support code.
|
copy
applyMutation, build
DiskSnapshot.Builder name(String name)
The name of the disk snapshot (e.g., my-disk-snapshot
).
name
- The name of the disk snapshot (e.g., my-disk-snapshot
).DiskSnapshot.Builder arn(String arn)
The Amazon Resource Name (ARN) of the disk snapshot.
arn
- The Amazon Resource Name (ARN) of the disk snapshot.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.
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.DiskSnapshot.Builder createdAt(Instant createdAt)
The date when the disk snapshot was created.
createdAt
- The date when the disk snapshot was created.DiskSnapshot.Builder location(ResourceLocation location)
The AWS Region and Availability Zone where the disk snapshot was created.
location
- The AWS Region and Availability Zone where the disk snapshot was created.default DiskSnapshot.Builder location(Consumer<ResourceLocation.Builder> location)
The AWS Region and Availability Zone where the disk snapshot was created.
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)
DiskSnapshot.Builder resourceType(String resourceType)
The Lightsail resource type (e.g., DiskSnapshot
).
resourceType
- The Lightsail resource type (e.g., DiskSnapshot
).ResourceType
,
ResourceType
DiskSnapshot.Builder resourceType(ResourceType resourceType)
The Lightsail resource type (e.g., DiskSnapshot
).
resourceType
- The Lightsail resource type (e.g., DiskSnapshot
).ResourceType
,
ResourceType
DiskSnapshot.Builder sizeInGb(Integer sizeInGb)
The size of the disk in GB.
sizeInGb
- The size of the disk in GB.DiskSnapshot.Builder state(String state)
The status of the disk snapshot operation.
state
- The status of the disk snapshot operation.DiskSnapshotState
,
DiskSnapshotState
DiskSnapshot.Builder state(DiskSnapshotState state)
The status of the disk snapshot operation.
state
- The status of the disk snapshot operation.DiskSnapshotState
,
DiskSnapshotState
DiskSnapshot.Builder progress(String progress)
The progress of the disk snapshot operation.
progress
- The progress of the disk snapshot operation.DiskSnapshot.Builder fromDiskName(String fromDiskName)
The unique name of the source disk from which you are creating the disk snapshot.
fromDiskName
- The unique name of the source disk from which you are creating the disk snapshot.DiskSnapshot.Builder fromDiskArn(String fromDiskArn)
The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.
fromDiskArn
- The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.