Class VolumeAssociationReference.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.VolumeAssociationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VolumeAssociationReference>
- Enclosing interface:
VolumeAssociationReference
@Stability(Stable)
public static final class VolumeAssociationReference.Builder
extends Object
implements software.amazon.jsii.Builder<VolumeAssociationReference>
A builder for
VolumeAssociationReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofVolumeAssociationReference.getDevice()Sets the value ofVolumeAssociationReference.getVolumeId()workspaceInstanceId(String workspaceInstanceId) Sets the value ofVolumeAssociationReference.getWorkspaceInstanceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
device
Sets the value ofVolumeAssociationReference.getDevice()- Parameters:
device- The Device of the VolumeAssociation resource. This parameter is required.- Returns:
this
-
volumeId
Sets the value ofVolumeAssociationReference.getVolumeId()- Parameters:
volumeId- The VolumeId of the VolumeAssociation resource. This parameter is required.- Returns:
this
-
workspaceInstanceId
@Stability(Stable) public VolumeAssociationReference.Builder workspaceInstanceId(String workspaceInstanceId) Sets the value ofVolumeAssociationReference.getWorkspaceInstanceId()- Parameters:
workspaceInstanceId- The WorkspaceInstanceId of the VolumeAssociation resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VolumeAssociationReference>- Returns:
- a new instance of
VolumeAssociationReference - Throws:
NullPointerException- if any required attribute was not provided
-