Class CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty>
- Enclosing interface:
CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty
@Stability(Stable)
public static final class CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deviceName(String deviceName) Sets the value ofCfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.getEbs()ebs(IResolvable ebs) Sets the value ofCfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.getEbs()virtualName(String virtualName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder deviceName(String deviceName) - Parameters:
deviceName- The device to which these mappings apply.- Returns:
this
-
ebs
@Stability(Stable) public CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder ebs(IResolvable ebs) Sets the value ofCfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.getEbs()- Parameters:
ebs- Use to manage Amazon EBS-specific configuration for this mapping.- Returns:
this
-
ebs
@Stability(Stable) public CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder ebs(CfnImageRecipePropsMixin.EbsInstanceBlockDeviceSpecificationProperty ebs) Sets the value ofCfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.getEbs()- Parameters:
ebs- Use to manage Amazon EBS-specific configuration for this mapping.- Returns:
this
-
noDevice
@Stability(Stable) public CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder noDevice(String noDevice) - 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 theNoDevicefield.NoDevice:""- Returns:
this
-
virtualName
@Stability(Stable) public CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty.Builder virtualName(String virtualName) - Parameters:
virtualName- Manages the instance ephemeral devices.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty>- Returns:
- a new instance of
CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-