public static final class CfnInstance.BlockDeviceMappingProperty.Builder
extends java.lang.Object
CfnInstance.BlockDeviceMappingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnInstance.BlockDeviceMappingProperty |
build()
Builds the configured instance.
|
CfnInstance.BlockDeviceMappingProperty.Builder |
deviceName(java.lang.String deviceName)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getDeviceName() |
CfnInstance.BlockDeviceMappingProperty.Builder |
ebs(CfnInstance.EbsBlockDeviceProperty ebs)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getEbs() |
CfnInstance.BlockDeviceMappingProperty.Builder |
ebs(IResolvable ebs)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getEbs() |
CfnInstance.BlockDeviceMappingProperty.Builder |
noDevice(java.lang.String noDevice)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getNoDevice() |
CfnInstance.BlockDeviceMappingProperty.Builder |
virtualName(java.lang.String virtualName)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getVirtualName() |
public CfnInstance.BlockDeviceMappingProperty.Builder deviceName(java.lang.String deviceName)
CfnInstance.BlockDeviceMappingProperty.getDeviceName()
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 to ROOT_DEVICE
and AWS OpsWorks Stacks will provide the correct device name.this
public CfnInstance.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs)
CfnInstance.BlockDeviceMappingProperty.getEbs()
ebs
- An `EBSBlockDevice` that defines how to configure an Amazon EBS volume when the instance is launched.
You can specify either the VirtualName
or Ebs
, but not both.this
public CfnInstance.BlockDeviceMappingProperty.Builder ebs(CfnInstance.EbsBlockDeviceProperty ebs)
CfnInstance.BlockDeviceMappingProperty.getEbs()
ebs
- An `EBSBlockDevice` that defines how to configure an Amazon EBS volume when the instance is launched.
You can specify either the VirtualName
or Ebs
, but not both.this
public CfnInstance.BlockDeviceMappingProperty.Builder noDevice(java.lang.String noDevice)
CfnInstance.BlockDeviceMappingProperty.getNoDevice()
noDevice
- Suppresses the specified device included in the AMI's block device mapping.this
public CfnInstance.BlockDeviceMappingProperty.Builder virtualName(java.lang.String virtualName)
CfnInstance.BlockDeviceMappingProperty.getVirtualName()
virtualName
- The virtual device name.
For more information, see BlockDeviceMapping . You can specify either the VirtualName
or Ebs
, but not both.this
public CfnInstance.BlockDeviceMappingProperty build()
CfnInstance.BlockDeviceMappingProperty
java.lang.NullPointerException
- if any required attribute was not provided