Interface AwsEc2VolumeDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2VolumeDetails.Builder,
,AwsEc2VolumeDetails> SdkBuilder<AwsEc2VolumeDetails.Builder,
,AwsEc2VolumeDetails> SdkPojo
- Enclosing class:
AwsEc2VolumeDetails
-
Method Summary
Modifier and TypeMethodDescriptionattachments
(Collection<AwsEc2VolumeAttachment> attachments) The volume attachments.attachments
(Consumer<AwsEc2VolumeAttachment.Builder>... attachments) The volume attachments.attachments
(AwsEc2VolumeAttachment... attachments) The volume attachments.createTime
(String createTime) Indicates when the volume was created.deviceName
(String deviceName) The device name for the volume that is attached to the instance.Specifies whether the volume is encrypted.The ARN of the KMS key that was used to protect the volume encryption key for the volume.The size of the volume, in GiBs.snapshotId
(String snapshotId) The snapshot from which the volume was created.The volume state.The ID of the volume.volumeScanStatus
(String volumeScanStatus) Indicates whether the volume was scanned or skipped.volumeType
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
createTime
Indicates when the volume was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
createTime
- Indicates when the volume was created.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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
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
The volume attachments.
- Parameters:
attachments
- The volume attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The volume attachments.
This is a convenience method that creates an instance of theAwsEc2VolumeAttachment.Builder
avoiding the need to create one manually viaAwsEc2VolumeAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<AwsEc2VolumeAttachment>)
.- 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:
-
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
The volume type.
- Parameters:
volumeType
- The volume type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-