Class CfnVolumeAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnVolumeAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeAssociation>
- Enclosing class:
CfnVolumeAssociation
@Stability(Stable)
public static final class CfnVolumeAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeAssociation>
A fluent builder for
CfnVolumeAssociation
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnVolumeAssociation.Builder
The device name for the volume attachment.disassociateMode
(String disassociateMode) Mode to use when disassociating the volume.ID of the volume to attach to the workspace instance.workspaceInstanceId
(String workspaceInstanceId) ID of the workspace instance to associate with the volume.
-
Method Details
-
create
@Stability(Stable) public static CfnVolumeAssociation.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVolumeAssociation.Builder
.
-
device
The device name for the volume attachment.- Parameters:
device
- The device name for the volume attachment. This parameter is required.- Returns:
this
- See Also:
-
volumeId
ID of the volume to attach to the workspace instance.- Parameters:
volumeId
- ID of the volume to attach to the workspace instance. This parameter is required.- Returns:
this
- See Also:
-
workspaceInstanceId
@Stability(Stable) public CfnVolumeAssociation.Builder workspaceInstanceId(String workspaceInstanceId) ID of the workspace instance to associate with the volume.- Parameters:
workspaceInstanceId
- ID of the workspace instance to associate with the volume. This parameter is required.- Returns:
this
- See Also:
-
disassociateMode
Mode to use when disassociating the volume.- Parameters:
disassociateMode
- Mode to use when disassociating the volume. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolumeAssociation>
- Returns:
- a newly built instance of
CfnVolumeAssociation
.
-