Class CfnLayer.VolumeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnLayer.VolumeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayer.VolumeConfigurationProperty>
- Enclosing interface:
- CfnLayer.VolumeConfigurationProperty
@Stability(Stable)
public static final class CfnLayer.VolumeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayer.VolumeConfigurationProperty>
A builder for
CfnLayer.VolumeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLayer.VolumeConfigurationProperty.getEncrypted()
encrypted
(IResolvable encrypted) Sets the value ofCfnLayer.VolumeConfigurationProperty.getEncrypted()
Sets the value ofCfnLayer.VolumeConfigurationProperty.getIops()
mountPoint
(String mountPoint) Sets the value ofCfnLayer.VolumeConfigurationProperty.getMountPoint()
numberOfDisks
(Number numberOfDisks) Sets the value ofCfnLayer.VolumeConfigurationProperty.getNumberOfDisks()
Sets the value ofCfnLayer.VolumeConfigurationProperty.getRaidLevel()
Sets the value ofCfnLayer.VolumeConfigurationProperty.getSize()
volumeType
(String volumeType) Sets the value ofCfnLayer.VolumeConfigurationProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encrypted
Sets the value ofCfnLayer.VolumeConfigurationProperty.getEncrypted()
- Parameters:
encrypted
- Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption .- Returns:
this
-
encrypted
@Stability(Stable) public CfnLayer.VolumeConfigurationProperty.Builder encrypted(IResolvable encrypted) Sets the value ofCfnLayer.VolumeConfigurationProperty.getEncrypted()
- Parameters:
encrypted
- Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption .- Returns:
this
-
iops
Sets the value ofCfnLayer.VolumeConfigurationProperty.getIops()
- Parameters:
iops
- The number of I/O operations per second (IOPS) to provision for the volume. For PIOPS volumes, the IOPS per disk.If you specify
io1
for the volume type, you must specify this property.- Returns:
this
-
mountPoint
@Stability(Stable) public CfnLayer.VolumeConfigurationProperty.Builder mountPoint(String mountPoint) Sets the value ofCfnLayer.VolumeConfigurationProperty.getMountPoint()
- Parameters:
mountPoint
- The volume mount point. For example "/dev/sdh".- Returns:
this
-
numberOfDisks
@Stability(Stable) public CfnLayer.VolumeConfigurationProperty.Builder numberOfDisks(Number numberOfDisks) Sets the value ofCfnLayer.VolumeConfigurationProperty.getNumberOfDisks()
- Parameters:
numberOfDisks
- The number of disks in the volume.- Returns:
this
-
raidLevel
Sets the value ofCfnLayer.VolumeConfigurationProperty.getRaidLevel()
- Parameters:
raidLevel
- The volume RAID level .- Returns:
this
-
size
Sets the value ofCfnLayer.VolumeConfigurationProperty.getSize()
- Parameters:
size
- The volume size.- Returns:
this
-
volumeType
@Stability(Stable) public CfnLayer.VolumeConfigurationProperty.Builder volumeType(String volumeType) Sets the value ofCfnLayer.VolumeConfigurationProperty.getVolumeType()
- Parameters:
volumeType
- The volume type. For more information, see Amazon EBS Volume Types .standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024 GiB.io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of 16384 GiB.gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum size of 16384 GiB.st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayer.VolumeConfigurationProperty>
- Returns:
- a new instance of
CfnLayer.VolumeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-