Class CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.BlockDeviceMappingProperty>
- Enclosing interface:
CfnWorkspaceInstance.BlockDeviceMappingProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.BlockDeviceMappingProperty>
A builder for
CfnWorkspaceInstance.BlockDeviceMappingProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deviceName
(String deviceName) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getDeviceName()
ebs
(IResolvable ebs) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getEbs()
Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getEbs()
Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getNoDevice()
virtualName
(String virtualName) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getVirtualName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder deviceName(String deviceName) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getDeviceName()
- Parameters:
deviceName
- the value to be set.- Returns:
this
-
ebs
@Stability(Stable) public CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getEbs()
- Parameters:
ebs
- the value to be set.- Returns:
this
-
ebs
@Stability(Stable) public CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder ebs(CfnWorkspaceInstance.EbsBlockDeviceProperty ebs) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getEbs()
- Parameters:
ebs
- the value to be set.- Returns:
this
-
noDevice
@Stability(Stable) public CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder noDevice(String noDevice) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getNoDevice()
- Parameters:
noDevice
- the value to be set.- Returns:
this
-
virtualName
@Stability(Stable) public CfnWorkspaceInstance.BlockDeviceMappingProperty.Builder virtualName(String virtualName) Sets the value ofCfnWorkspaceInstance.BlockDeviceMappingProperty.getVirtualName()
- Parameters:
virtualName
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.BlockDeviceMappingProperty>
- Returns:
- a new instance of
CfnWorkspaceInstance.BlockDeviceMappingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-