Class CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opsworks.CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.EbsBlockDeviceProperty>
- Enclosing interface:
CfnInstancePropsMixin.EbsBlockDeviceProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.EbsBlockDeviceProperty>
A builder for
CfnInstancePropsMixin.EbsBlockDeviceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteOnTermination(Boolean deleteOnTermination) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getDeleteOnTermination()deleteOnTermination(IResolvable deleteOnTermination) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getDeleteOnTermination()Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getIops()snapshotId(String snapshotId) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getSnapshotId()volumeSize(Number volumeSize) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getVolumeSize()volumeType(String volumeType) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteOnTermination
@Stability(Stable) public CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder deleteOnTermination(Boolean deleteOnTermination) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getDeleteOnTermination()- Parameters:
deleteOnTermination- Whether the volume is deleted on instance termination.- Returns:
this
-
deleteOnTermination
@Stability(Stable) public CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder deleteOnTermination(IResolvable deleteOnTermination) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getDeleteOnTermination()- Parameters:
deleteOnTermination- Whether the volume is deleted on instance termination.- Returns:
this
-
iops
Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getIops()- Parameters:
iops- The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice .- Returns:
this
-
snapshotId
@Stability(Stable) public CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder snapshotId(String snapshotId) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getSnapshotId()- Parameters:
snapshotId- The snapshot ID.- Returns:
this
-
volumeSize
@Stability(Stable) public CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder volumeSize(Number volumeSize) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getVolumeSize()- Parameters:
volumeSize- The volume size, in GiB. For more information, see EbsBlockDevice .- Returns:
this
-
volumeType
@Stability(Stable) public CfnInstancePropsMixin.EbsBlockDeviceProperty.Builder volumeType(String volumeType) Sets the value ofCfnInstancePropsMixin.EbsBlockDeviceProperty.getVolumeType()- Parameters:
volumeType- The volume type.gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes,st1for Throughput Optimized hard disk drives (HDD),sc1for Cold HDD,andstandardfor Magnetic volumes.If you specify the
io1volume type, you must also specify a value for theIopsattribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.EbsBlockDeviceProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.EbsBlockDeviceProperty - Throws:
NullPointerException- if any required attribute was not provided
-