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