Interface ImageDiskContainer.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageDiskContainer.Builder,ImageDiskContainer>
,SdkBuilder<ImageDiskContainer.Builder,ImageDiskContainer>
,SdkPojo
- Enclosing class:
- ImageDiskContainer
public static interface ImageDiskContainer.Builder extends SdkPojo, CopyableBuilder<ImageDiskContainer.Builder,ImageDiskContainer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ImageDiskContainer.Builder
description(String description)
The description of the disk image.ImageDiskContainer.Builder
deviceName(String deviceName)
The block device mapping for the disk.ImageDiskContainer.Builder
format(String format)
The format of the disk image being imported.ImageDiskContainer.Builder
snapshotId(String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.ImageDiskContainer.Builder
url(String url)
The URL to the Amazon S3-based disk image being imported.default ImageDiskContainer.Builder
userBucket(Consumer<UserBucket.Builder> userBucket)
The S3 bucket for the disk image.ImageDiskContainer.Builder
userBucket(UserBucket userBucket)
The 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
ImageDiskContainer.Builder description(String description)
The description of the disk image.
- Parameters:
description
- The description of the disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceName
ImageDiskContainer.Builder deviceName(String deviceName)
The block device mapping for the disk.
- Parameters:
deviceName
- The block device mapping for the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
format
ImageDiskContainer.Builder format(String format)
The format of the disk image being imported.
Valid values:
OVA
|VHD
|VHDX
|VMDK
|RAW
- Parameters:
format
- The format of the disk image being imported.Valid values:
OVA
|VHD
|VHDX
|VMDK
|RAW
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
ImageDiskContainer.Builder snapshotId(String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
- Parameters:
snapshotId
- The ID of the EBS snapshot to be used for importing the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
ImageDiskContainer.Builder url(String url)
The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)
- Parameters:
url
- The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userBucket
ImageDiskContainer.Builder userBucket(UserBucket userBucket)
The S3 bucket for the disk image.
- Parameters:
userBucket
- The S3 bucket for the disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userBucket
default ImageDiskContainer.Builder userBucket(Consumer<UserBucket.Builder> userBucket)
The S3 bucket for the disk image.
This is a convenience method that creates an instance of theUserBucket.Builder
avoiding the need to create one manually viaUserBucket.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserBucket(UserBucket)
.- Parameters:
userBucket
- a consumer that will call methods onUserBucket.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
userBucket(UserBucket)
-
-