Class CfnWorkspaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.workspaces.CfnWorkspaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceProps>
- Enclosing interface:
- CfnWorkspaceProps
@Stability(Stable)
public static final class CfnWorkspaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceProps>
A builder for
CfnWorkspaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWorkspaceProps.getBundleId()directoryId(String directoryId) Sets the value ofCfnWorkspaceProps.getDirectoryId()rootVolumeEncryptionEnabled(Boolean rootVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getRootVolumeEncryptionEnabled()rootVolumeEncryptionEnabled(IResolvable rootVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getRootVolumeEncryptionEnabled()Sets the value ofCfnWorkspaceProps.getTags()Sets the value ofCfnWorkspaceProps.getUserName()userVolumeEncryptionEnabled(Boolean userVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getUserVolumeEncryptionEnabled()userVolumeEncryptionEnabled(IResolvable userVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getUserVolumeEncryptionEnabled()volumeEncryptionKey(String volumeEncryptionKey) Sets the value ofCfnWorkspaceProps.getVolumeEncryptionKey()workspaceProperties(IResolvable workspaceProperties) Sets the value ofCfnWorkspaceProps.getWorkspaceProperties()workspaceProperties(CfnWorkspace.WorkspacePropertiesProperty workspaceProperties) Sets the value ofCfnWorkspaceProps.getWorkspaceProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bundleId
Sets the value ofCfnWorkspaceProps.getBundleId()- Parameters:
bundleId- The identifier of the bundle for the WorkSpace. This parameter is required.- Returns:
this
-
directoryId
Sets the value ofCfnWorkspaceProps.getDirectoryId()- Parameters:
directoryId- The identifier of the AWS Directory Service directory for the WorkSpace. This parameter is required.- Returns:
this
-
userName
Sets the value ofCfnWorkspaceProps.getUserName()- Parameters:
userName- The user name of the user for the WorkSpace. This parameter is required. This user name must exist in the AWS Directory Service directory for the WorkSpace.- Returns:
this
-
rootVolumeEncryptionEnabled
@Stability(Stable) public CfnWorkspaceProps.Builder rootVolumeEncryptionEnabled(Boolean rootVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getRootVolumeEncryptionEnabled()- Parameters:
rootVolumeEncryptionEnabled- Indicates whether the data stored on the root volume is encrypted.- Returns:
this
-
rootVolumeEncryptionEnabled
@Stability(Stable) public CfnWorkspaceProps.Builder rootVolumeEncryptionEnabled(IResolvable rootVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getRootVolumeEncryptionEnabled()- Parameters:
rootVolumeEncryptionEnabled- Indicates whether the data stored on the root volume is encrypted.- Returns:
this
-
tags
Sets the value ofCfnWorkspaceProps.getTags()- Parameters:
tags- The tags for the WorkSpace.- Returns:
this
-
userVolumeEncryptionEnabled
@Stability(Stable) public CfnWorkspaceProps.Builder userVolumeEncryptionEnabled(Boolean userVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getUserVolumeEncryptionEnabled()- Parameters:
userVolumeEncryptionEnabled- Indicates whether the data stored on the user volume is encrypted.- Returns:
this
-
userVolumeEncryptionEnabled
@Stability(Stable) public CfnWorkspaceProps.Builder userVolumeEncryptionEnabled(IResolvable userVolumeEncryptionEnabled) Sets the value ofCfnWorkspaceProps.getUserVolumeEncryptionEnabled()- Parameters:
userVolumeEncryptionEnabled- Indicates whether the data stored on the user volume is encrypted.- Returns:
this
-
volumeEncryptionKey
Sets the value ofCfnWorkspaceProps.getVolumeEncryptionKey()- Parameters:
volumeEncryptionKey- The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.- Returns:
this
-
workspaceProperties
@Stability(Stable) public CfnWorkspaceProps.Builder workspaceProperties(IResolvable workspaceProperties) Sets the value ofCfnWorkspaceProps.getWorkspaceProperties()- Parameters:
workspaceProperties- The WorkSpace properties.- Returns:
this
-
workspaceProperties
@Stability(Stable) public CfnWorkspaceProps.Builder workspaceProperties(CfnWorkspace.WorkspacePropertiesProperty workspaceProperties) Sets the value ofCfnWorkspaceProps.getWorkspaceProperties()- Parameters:
workspaceProperties- The WorkSpace properties.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceProps>- Returns:
- a new instance of
CfnWorkspaceProps - Throws:
NullPointerException- if any required attribute was not provided
-