Class CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty>
- Enclosing interface:
CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty
@Stability(Stable)
public static final class CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty>
A builder for
CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deviceName(String deviceName) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getDeviceName()ebs(IResolvable ebs) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getEbs()Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getEbs()Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getNoDevice()virtualName(String virtualName) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getVirtualName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder deviceName(String deviceName) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getDeviceName()- Parameters:
deviceName- The device name (for example, /dev/sdh or xvdh).- Returns:
this
-
ebs
@Stability(Stable) public CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getEbs()- Parameters:
ebs- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
this
-
ebs
@Stability(Stable) public CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder ebs(CfnLaunchTemplatePropsMixin.EbsProperty ebs) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getEbs()- Parameters:
ebs- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
this
-
noDevice
@Stability(Stable) public CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder noDevice(String noDevice) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getNoDevice()- Parameters:
noDevice- To omit the device from the block device mapping, specify an empty string.- Returns:
this
-
virtualName
@Stability(Stable) public CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.Builder virtualName(String virtualName) Sets the value ofCfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty.getVirtualName()- Parameters:
virtualName- The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty>- Returns:
- a new instance of
CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-