public static final class CfnLaunchTemplate.BlockDeviceMappingProperty.Builder
extends java.lang.Object
CfnLaunchTemplate.BlockDeviceMappingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLaunchTemplate.BlockDeviceMappingProperty |
build()
Builds the configured instance.
|
CfnLaunchTemplate.BlockDeviceMappingProperty.Builder |
deviceName(java.lang.String deviceName)
Sets the value of
CfnLaunchTemplate.BlockDeviceMappingProperty.getDeviceName() |
CfnLaunchTemplate.BlockDeviceMappingProperty.Builder |
ebs(CfnLaunchTemplate.EbsProperty ebs)
Sets the value of
CfnLaunchTemplate.BlockDeviceMappingProperty.getEbs() |
CfnLaunchTemplate.BlockDeviceMappingProperty.Builder |
ebs(IResolvable ebs)
Sets the value of
CfnLaunchTemplate.BlockDeviceMappingProperty.getEbs() |
CfnLaunchTemplate.BlockDeviceMappingProperty.Builder |
noDevice(java.lang.String noDevice)
Sets the value of
CfnLaunchTemplate.BlockDeviceMappingProperty.getNoDevice() |
CfnLaunchTemplate.BlockDeviceMappingProperty.Builder |
virtualName(java.lang.String virtualName)
Sets the value of
CfnLaunchTemplate.BlockDeviceMappingProperty.getVirtualName() |
public CfnLaunchTemplate.BlockDeviceMappingProperty.Builder deviceName(java.lang.String deviceName)
CfnLaunchTemplate.BlockDeviceMappingProperty.getDeviceName()
deviceName
- The device name (for example, /dev/sdh or xvdh).this
public CfnLaunchTemplate.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs)
CfnLaunchTemplate.BlockDeviceMappingProperty.getEbs()
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.this
public CfnLaunchTemplate.BlockDeviceMappingProperty.Builder ebs(CfnLaunchTemplate.EbsProperty ebs)
CfnLaunchTemplate.BlockDeviceMappingProperty.getEbs()
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.this
public CfnLaunchTemplate.BlockDeviceMappingProperty.Builder noDevice(java.lang.String noDevice)
CfnLaunchTemplate.BlockDeviceMappingProperty.getNoDevice()
noDevice
- To omit the device from the block device mapping, specify an empty string.this
public CfnLaunchTemplate.BlockDeviceMappingProperty.Builder virtualName(java.lang.String virtualName)
CfnLaunchTemplate.BlockDeviceMappingProperty.getVirtualName()
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.this
public CfnLaunchTemplate.BlockDeviceMappingProperty build()
CfnLaunchTemplate.BlockDeviceMappingProperty
java.lang.NullPointerException
- if any required attribute was not provided