Interface SnapshotTaskDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SnapshotTaskDetail.Builder,SnapshotTaskDetail>,SdkBuilder<SnapshotTaskDetail.Builder,SnapshotTaskDetail>,SdkPojo
- Enclosing class:
- SnapshotTaskDetail
public static interface SnapshotTaskDetail.Builder extends SdkPojo, CopyableBuilder<SnapshotTaskDetail.Builder,SnapshotTaskDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SnapshotTaskDetail.Builderdescription(String description)The description of the snapshot.SnapshotTaskDetail.BuilderdiskImageSize(Double diskImageSize)The size of the disk in the snapshot, in GiB.SnapshotTaskDetail.Builderencrypted(Boolean encrypted)Indicates whether the snapshot is encrypted.SnapshotTaskDetail.Builderformat(String format)The format of the disk image from which the snapshot is created.SnapshotTaskDetail.BuilderkmsKeyId(String kmsKeyId)The identifier for the KMS key that was used to create the encrypted snapshot.SnapshotTaskDetail.Builderprogress(String progress)The percentage of completion for the import snapshot task.SnapshotTaskDetail.BuildersnapshotId(String snapshotId)The snapshot ID of the disk being imported.SnapshotTaskDetail.Builderstatus(String status)A brief status for the import snapshot task.SnapshotTaskDetail.BuilderstatusMessage(String statusMessage)A detailed status message for the import snapshot task.SnapshotTaskDetail.Builderurl(String url)The URL of the disk image from which the snapshot is created.default SnapshotTaskDetail.BuilderuserBucket(Consumer<UserBucketDetails.Builder> userBucket)The Amazon S3 bucket for the disk image.SnapshotTaskDetail.BuilderuserBucket(UserBucketDetails userBucket)The Amazon S3 bucket for the disk image.-
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
-
description
SnapshotTaskDetail.Builder description(String description)
The description of the snapshot.
- Parameters:
description- The description of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskImageSize
SnapshotTaskDetail.Builder diskImageSize(Double diskImageSize)
The size of the disk in the snapshot, in GiB.
- Parameters:
diskImageSize- The size of the disk in the snapshot, in GiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
SnapshotTaskDetail.Builder encrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
- Parameters:
encrypted- Indicates whether the snapshot is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
format
SnapshotTaskDetail.Builder format(String format)
The format of the disk image from which the snapshot is created.
- Parameters:
format- The format of the disk image from which the snapshot is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
SnapshotTaskDetail.Builder kmsKeyId(String kmsKeyId)
The identifier for the KMS key that was used to create the encrypted snapshot.
- Parameters:
kmsKeyId- The identifier for the KMS key that was used to create the encrypted snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
progress
SnapshotTaskDetail.Builder progress(String progress)
The percentage of completion for the import snapshot task.
- Parameters:
progress- The percentage of completion for the import snapshot task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
SnapshotTaskDetail.Builder snapshotId(String snapshotId)
The snapshot ID of the disk being imported.
- Parameters:
snapshotId- The snapshot ID of the disk being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
SnapshotTaskDetail.Builder status(String status)
A brief status for the import snapshot task.
- Parameters:
status- A brief status for the import snapshot task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusMessage
SnapshotTaskDetail.Builder statusMessage(String statusMessage)
A detailed status message for the import snapshot task.
- Parameters:
statusMessage- A detailed status message for the import snapshot task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
SnapshotTaskDetail.Builder url(String url)
The URL of the disk image from which the snapshot is created.
- Parameters:
url- The URL of the disk image from which the snapshot is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userBucket
SnapshotTaskDetail.Builder userBucket(UserBucketDetails userBucket)
The Amazon S3 bucket for the disk image.
- Parameters:
userBucket- The Amazon S3 bucket for the disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userBucket
default SnapshotTaskDetail.Builder userBucket(Consumer<UserBucketDetails.Builder> userBucket)
The Amazon S3 bucket for the disk image.
This is a convenience method that creates an instance of theUserBucketDetails.Builderavoiding the need to create one manually viaUserBucketDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserBucket(UserBucketDetails).- Parameters:
userBucket- a consumer that will call methods onUserBucketDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
userBucket(UserBucketDetails)
-
-