public static final class CfnWorkspaceProps.Builder
extends java.lang.Object
CfnWorkspaceProps
Constructor and Description |
---|
Builder() |
public CfnWorkspaceProps.Builder bundleId(java.lang.String bundleId)
CfnWorkspaceProps.getBundleId()
bundleId
- The identifier of the bundle for the WorkSpace. This parameter is required.this
public CfnWorkspaceProps.Builder directoryId(java.lang.String directoryId)
CfnWorkspaceProps.getDirectoryId()
directoryId
- The identifier of the AWS Directory Service directory for the WorkSpace. This parameter is required.this
public CfnWorkspaceProps.Builder userName(java.lang.String userName)
CfnWorkspaceProps.getUserName()
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.this
public CfnWorkspaceProps.Builder rootVolumeEncryptionEnabled(java.lang.Boolean rootVolumeEncryptionEnabled)
CfnWorkspaceProps.getRootVolumeEncryptionEnabled()
rootVolumeEncryptionEnabled
- Indicates whether the data stored on the root volume is encrypted.this
public CfnWorkspaceProps.Builder rootVolumeEncryptionEnabled(IResolvable rootVolumeEncryptionEnabled)
CfnWorkspaceProps.getRootVolumeEncryptionEnabled()
rootVolumeEncryptionEnabled
- Indicates whether the data stored on the root volume is encrypted.this
public CfnWorkspaceProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnWorkspaceProps.getTags()
tags
- The tags for the WorkSpace.this
public CfnWorkspaceProps.Builder userVolumeEncryptionEnabled(java.lang.Boolean userVolumeEncryptionEnabled)
CfnWorkspaceProps.getUserVolumeEncryptionEnabled()
userVolumeEncryptionEnabled
- Indicates whether the data stored on the user volume is encrypted.this
public CfnWorkspaceProps.Builder userVolumeEncryptionEnabled(IResolvable userVolumeEncryptionEnabled)
CfnWorkspaceProps.getUserVolumeEncryptionEnabled()
userVolumeEncryptionEnabled
- Indicates whether the data stored on the user volume is encrypted.this
public CfnWorkspaceProps.Builder volumeEncryptionKey(java.lang.String volumeEncryptionKey)
CfnWorkspaceProps.getVolumeEncryptionKey()
volumeEncryptionKey
- The symmetric AWS KMS key used to encrypt data stored on your WorkSpace.
Amazon WorkSpaces does not support asymmetric KMS keys.this
public CfnWorkspaceProps.Builder workspaceProperties(IResolvable workspaceProperties)
CfnWorkspaceProps.getWorkspaceProperties()
workspaceProperties
- The WorkSpace properties.this
public CfnWorkspaceProps.Builder workspaceProperties(CfnWorkspace.WorkspacePropertiesProperty workspaceProperties)
CfnWorkspaceProps.getWorkspaceProperties()
workspaceProperties
- The WorkSpace properties.this
public CfnWorkspaceProps build()
CfnWorkspaceProps
java.lang.NullPointerException
- if any required attribute was not provided