Class CfnVolumeAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnVolumeAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeAssociationProps>
- Enclosing interface:
CfnVolumeAssociationProps
@Stability(Stable)
public static final class CfnVolumeAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeAssociationProps>
A builder for
CfnVolumeAssociationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnVolumeAssociationProps.getDevice()
disassociateMode
(String disassociateMode) Sets the value ofCfnVolumeAssociationProps.getDisassociateMode()
Sets the value ofCfnVolumeAssociationProps.getVolumeId()
workspaceInstanceId
(String workspaceInstanceId) Sets the value ofCfnVolumeAssociationProps.getWorkspaceInstanceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
device
Sets the value ofCfnVolumeAssociationProps.getDevice()
- Parameters:
device
- The device name for the volume attachment. This parameter is required.- Returns:
this
-
volumeId
Sets the value ofCfnVolumeAssociationProps.getVolumeId()
- Parameters:
volumeId
- ID of the volume to attach to the workspace instance. This parameter is required.- Returns:
this
-
workspaceInstanceId
@Stability(Stable) public CfnVolumeAssociationProps.Builder workspaceInstanceId(String workspaceInstanceId) Sets the value ofCfnVolumeAssociationProps.getWorkspaceInstanceId()
- Parameters:
workspaceInstanceId
- ID of the workspace instance to associate with the volume. This parameter is required.- Returns:
this
-
disassociateMode
@Stability(Stable) public CfnVolumeAssociationProps.Builder disassociateMode(String disassociateMode) Sets the value ofCfnVolumeAssociationProps.getDisassociateMode()
- Parameters:
disassociateMode
- Mode to use when disassociating the volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolumeAssociationProps>
- Returns:
- a new instance of
CfnVolumeAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-