Class CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipe.InstanceBlockDeviceMappingProperty>
- Enclosing interface:
CfnImageRecipe.InstanceBlockDeviceMappingProperty
@Stability(Stable)
public static final class CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipe.InstanceBlockDeviceMappingProperty>
A builder for
CfnImageRecipe.InstanceBlockDeviceMappingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deviceName
(String deviceName) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getDeviceName()
ebs
(IResolvable ebs) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getEbs()
Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getEbs()
Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getNoDevice()
virtualName
(String virtualName) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getVirtualName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder deviceName(String deviceName) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getDeviceName()
- Parameters:
deviceName
- The device to which these mappings apply.- Returns:
this
-
ebs
@Stability(Stable) public CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder ebs(IResolvable ebs) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getEbs()
- Parameters:
ebs
- Use to manage Amazon EBS-specific configuration for this mapping.- Returns:
this
-
ebs
@Stability(Stable) public CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder ebs(CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty ebs) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getEbs()
- Parameters:
ebs
- Use to manage Amazon EBS-specific configuration for this mapping.- Returns:
this
-
noDevice
@Stability(Stable) public CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder noDevice(String noDevice) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getNoDevice()
- Parameters:
noDevice
- Enter an empty string to remove a mapping from the parent image. The following is an example of an empty string value in theNoDevice
field.NoDevice:""
- Returns:
this
-
virtualName
@Stability(Stable) public CfnImageRecipe.InstanceBlockDeviceMappingProperty.Builder virtualName(String virtualName) Sets the value ofCfnImageRecipe.InstanceBlockDeviceMappingProperty.getVirtualName()
- Parameters:
virtualName
- Manages the instance ephemeral devices.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageRecipe.InstanceBlockDeviceMappingProperty>
- Returns:
- a new instance of
CfnImageRecipe.InstanceBlockDeviceMappingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-