Class CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.EbsBlockDeviceProperty>
- Enclosing interface:
CfnWorkspaceInstance.EbsBlockDeviceProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.EbsBlockDeviceProperty>
A builder for
CfnWorkspaceInstance.EbsBlockDeviceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getEncrypted()encrypted(IResolvable encrypted) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getEncrypted()Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getIops()Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getKmsKeyId()throughput(Number throughput) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getThroughput()volumeSize(Number volumeSize) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getVolumeSize()volumeType(String volumeType) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encrypted
@Stability(Stable) public CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder encrypted(Boolean encrypted) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getEncrypted()- Parameters:
encrypted- the value to be set.- Returns:
this
-
encrypted
@Stability(Stable) public CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder encrypted(IResolvable encrypted) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getEncrypted()- Parameters:
encrypted- the value to be set.- Returns:
this
-
iops
Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getIops()- Parameters:
iops- the value to be set.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getKmsKeyId()- Parameters:
kmsKeyId- the value to be set.- Returns:
this
-
throughput
@Stability(Stable) public CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder throughput(Number throughput) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getThroughput()- Parameters:
throughput- the value to be set.- Returns:
this
-
volumeSize
@Stability(Stable) public CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder volumeSize(Number volumeSize) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getVolumeSize()- Parameters:
volumeSize- the value to be set.- Returns:
this
-
volumeType
@Stability(Stable) public CfnWorkspaceInstance.EbsBlockDeviceProperty.Builder volumeType(String volumeType) Sets the value ofCfnWorkspaceInstance.EbsBlockDeviceProperty.getVolumeType()- Parameters:
volumeType- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.EbsBlockDeviceProperty>- Returns:
- a new instance of
CfnWorkspaceInstance.EbsBlockDeviceProperty - Throws:
NullPointerException- if any required attribute was not provided
-