public static final class EbsDeviceSnapshotOptions.Builder
extends java.lang.Object
EbsDeviceSnapshotOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EbsDeviceSnapshotOptions |
build()
Builds the configured instance.
|
EbsDeviceSnapshotOptions.Builder |
deleteOnTermination(java.lang.Boolean deleteOnTermination)
Sets the value of
EbsDeviceOptionsBase.getDeleteOnTermination() |
EbsDeviceSnapshotOptions.Builder |
iops(java.lang.Number iops)
Sets the value of
EbsDeviceOptionsBase.getIops() |
EbsDeviceSnapshotOptions.Builder |
volumeSize(java.lang.Number volumeSize)
Sets the value of
EbsDeviceSnapshotOptions.getVolumeSize() |
EbsDeviceSnapshotOptions.Builder |
volumeType(EbsDeviceVolumeType volumeType)
Sets the value of
EbsDeviceOptionsBase.getVolumeType() |
public EbsDeviceSnapshotOptions.Builder volumeSize(java.lang.Number volumeSize)
EbsDeviceSnapshotOptions.getVolumeSize()
volumeSize
- The volume size, in Gibibytes (GiB).
If you specify volumeSize, it must be equal or greater than the size of the snapshot.this
public EbsDeviceSnapshotOptions.Builder deleteOnTermination(java.lang.Boolean deleteOnTermination)
EbsDeviceOptionsBase.getDeleteOnTermination()
deleteOnTermination
- Indicates whether to delete the volume when the instance is terminated.this
public EbsDeviceSnapshotOptions.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 EbsDeviceSnapshotOptions.Builder volumeType(EbsDeviceVolumeType volumeType)
EbsDeviceOptionsBase.getVolumeType()
volumeType
- The EBS volume type.this
public EbsDeviceSnapshotOptions build()
EbsDeviceSnapshotOptions
java.lang.NullPointerException
- if any required attribute was not provided