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