Class CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opsworks.CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.BlockDeviceMappingProperty>
- Enclosing interface:
CfnInstancePropsMixin.BlockDeviceMappingProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.BlockDeviceMappingProperty>
A builder for
CfnInstancePropsMixin.BlockDeviceMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deviceName(String deviceName) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getDeviceName()Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getEbs()ebs(IResolvable ebs) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getEbs()Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getNoDevice()virtualName(String virtualName) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getVirtualName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder deviceName(String deviceName) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getDeviceName()- Parameters:
deviceName- The device name that is exposed to the instance, such as/dev/sdh. For the root device, you can use the explicit device name or you can set this parameter toROOT_DEVICEand OpsWorks Stacks will provide the correct device name.- Returns:
this
-
ebs
@Stability(Stable) public CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getEbs()- Parameters:
ebs- AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched. You can specify either theVirtualNameorEbs, but not both.- Returns:
this
-
ebs
@Stability(Stable) public CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder ebs(CfnInstancePropsMixin.EbsBlockDeviceProperty ebs) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getEbs()- Parameters:
ebs- AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched. You can specify either theVirtualNameorEbs, but not both.- Returns:
this
-
noDevice
@Stability(Stable) public CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder noDevice(String noDevice) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getNoDevice()- Parameters:
noDevice- Suppresses the specified device included in the AMI's block device mapping.- Returns:
this
-
virtualName
@Stability(Stable) public CfnInstancePropsMixin.BlockDeviceMappingProperty.Builder virtualName(String virtualName) Sets the value ofCfnInstancePropsMixin.BlockDeviceMappingProperty.getVirtualName()- Parameters:
virtualName- The virtual device name. For more information, see BlockDeviceMapping . You can specify either theVirtualNameorEbs, but not both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.BlockDeviceMappingProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.BlockDeviceMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-