Interface AwsEc2VolumeDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEc2VolumeDetails.Builder,AwsEc2VolumeDetails>,SdkBuilder<AwsEc2VolumeDetails.Builder,AwsEc2VolumeDetails>,SdkPojo
- Enclosing class:
- AwsEc2VolumeDetails
public static interface AwsEc2VolumeDetails.Builder extends SdkPojo, CopyableBuilder<AwsEc2VolumeDetails.Builder,AwsEc2VolumeDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsEc2VolumeDetails.Builderattachments(Collection<AwsEc2VolumeAttachment> attachments)The volume attachments.AwsEc2VolumeDetails.Builderattachments(Consumer<AwsEc2VolumeAttachment.Builder>... attachments)The volume attachments.AwsEc2VolumeDetails.Builderattachments(AwsEc2VolumeAttachment... attachments)The volume attachments.AwsEc2VolumeDetails.BuildercreateTime(String createTime)Indicates when the volume was created.AwsEc2VolumeDetails.BuilderdeviceName(String deviceName)The device name for the volume that is attached to the instance.AwsEc2VolumeDetails.Builderencrypted(Boolean encrypted)Specifies whether the volume is encrypted.AwsEc2VolumeDetails.BuilderkmsKeyId(String kmsKeyId)The ARN of the KMS key that was used to protect the volume encryption key for the volume.AwsEc2VolumeDetails.Buildersize(Integer size)The size of the volume, in GiBs.AwsEc2VolumeDetails.BuildersnapshotId(String snapshotId)The snapshot from which the volume was created.AwsEc2VolumeDetails.Builderstatus(String status)The volume state.AwsEc2VolumeDetails.BuildervolumeId(String volumeId)The ID of the volume.AwsEc2VolumeDetails.BuildervolumeScanStatus(String volumeScanStatus)Indicates whether the volume was scanned or skipped.AwsEc2VolumeDetails.BuildervolumeType(String volumeType)The volume type.-
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
-
createTime
AwsEc2VolumeDetails.Builder createTime(String createTime)
Indicates when the volume was created.
This field accepts only the specified formats. Timestamps can end with
Zor("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
- Parameters:
createTime- Indicates when the volume was created.This field accepts only the specified formats. Timestamps can end with
Zor("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
deviceName
AwsEc2VolumeDetails.Builder deviceName(String deviceName)
The device name for the volume that is attached to the instance.
- Parameters:
deviceName- The device name for the volume that is attached to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
AwsEc2VolumeDetails.Builder encrypted(Boolean encrypted)
Specifies whether the volume is encrypted.
- Parameters:
encrypted- Specifies whether the volume is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
size
AwsEc2VolumeDetails.Builder size(Integer size)
The size of the volume, in GiBs.
- Parameters:
size- The size of the volume, in GiBs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
AwsEc2VolumeDetails.Builder snapshotId(String snapshotId)
The snapshot from which the volume was created.
- Parameters:
snapshotId- The snapshot from which the volume was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
AwsEc2VolumeDetails.Builder status(String status)
The volume state. Valid values are as follows:
-
available -
creating -
deleted -
deleting -
error -
in-use
- Parameters:
status- The volume state. Valid values are as follows:-
available -
creating -
deleted -
deleting -
error -
in-use
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
kmsKeyId
AwsEc2VolumeDetails.Builder kmsKeyId(String kmsKeyId)
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
- Parameters:
kmsKeyId- The ARN of the KMS key that was used to protect the volume encryption key for the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
AwsEc2VolumeDetails.Builder attachments(Collection<AwsEc2VolumeAttachment> attachments)
The volume attachments.
- Parameters:
attachments- The volume attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
AwsEc2VolumeDetails.Builder attachments(AwsEc2VolumeAttachment... attachments)
The volume attachments.
- Parameters:
attachments- The volume attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
AwsEc2VolumeDetails.Builder attachments(Consumer<AwsEc2VolumeAttachment.Builder>... attachments)
The volume attachments.
This is a convenience method that creates an instance of theAwsEc2VolumeAttachment.Builderavoiding the need to create one manually viaAwsEc2VolumeAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#attachments(List.) - Parameters:
attachments- a consumer that will call methods onAwsEc2VolumeAttachment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#attachments(java.util.Collection)
-
volumeId
AwsEc2VolumeDetails.Builder volumeId(String volumeId)
The ID of the volume.
- Parameters:
volumeId- The ID of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeType
AwsEc2VolumeDetails.Builder volumeType(String volumeType)
The volume type.
- Parameters:
volumeType- The volume type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeScanStatus
AwsEc2VolumeDetails.Builder volumeScanStatus(String volumeScanStatus)
Indicates whether the volume was scanned or skipped.
- Parameters:
volumeScanStatus- Indicates whether the volume was scanned or skipped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-