public static final class EbsDeviceOptionsBase.Builder
extends java.lang.Object
EbsDeviceOptionsBase
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EbsDeviceOptionsBase |
build()
Builds the configured instance.
|
EbsDeviceOptionsBase.Builder |
deleteOnTermination(java.lang.Boolean deleteOnTermination)
Sets the value of
EbsDeviceOptionsBase.getDeleteOnTermination() |
EbsDeviceOptionsBase.Builder |
iops(java.lang.Number iops)
Sets the value of
EbsDeviceOptionsBase.getIops() |
EbsDeviceOptionsBase.Builder |
volumeType(EbsDeviceVolumeType volumeType)
Sets the value of
EbsDeviceOptionsBase.getVolumeType() |
public EbsDeviceOptionsBase.Builder deleteOnTermination(java.lang.Boolean deleteOnTermination)
EbsDeviceOptionsBase.getDeleteOnTermination()
deleteOnTermination
- Indicates whether to delete the volume when the instance is terminated.this
public EbsDeviceOptionsBase.Builder iops(java.lang.Number iops)
EbsDeviceOptionsBase.getIops()
iops
- The number of I/O operations per second (IOPS) to provision for the volume.
Must only be set for {@link volumeType}: {@link EbsDeviceVolumeType.IO1}
The maximum ratio of IOPS to volume size (in GiB) is 50:1, so for 5,000 provisioned IOPS, you need at least 100 GiB storage on the volume.
this
public EbsDeviceOptionsBase.Builder volumeType(EbsDeviceVolumeType volumeType)
EbsDeviceOptionsBase.getVolumeType()
volumeType
- The EBS volume type.this
public EbsDeviceOptionsBase build()
EbsDeviceOptionsBase
java.lang.NullPointerException
- if any required attribute was not provided