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