Class CfnWorkspaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.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.encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnWorkspaceProps.getEncryptionConfiguration()encryptionConfiguration(CfnWorkspace.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnWorkspaceProps.getEncryptionConfiguration()Sets the value ofCfnWorkspaceProps.getKmsKeyId()Sets the value ofCfnWorkspaceProps.getTags()workspaceDescription(String workspaceDescription) Sets the value ofCfnWorkspaceProps.getWorkspaceDescription()workspaceName(String workspaceName) Sets the value ofCfnWorkspaceProps.getWorkspaceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionConfiguration
@Stability(Stable) public CfnWorkspaceProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnWorkspaceProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- The encryption configuration for the workspace. This parameter is required.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnWorkspaceProps.Builder encryptionConfiguration(CfnWorkspace.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnWorkspaceProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- The encryption configuration for the workspace. This parameter is required.- Returns:
this
-
workspaceName
Sets the value ofCfnWorkspaceProps.getWorkspaceName()- Parameters:
workspaceName- The name of the workspace. This parameter is required.- Returns:
this
-
kmsKeyId
Sets the value ofCfnWorkspaceProps.getKmsKeyId()- Parameters:
kmsKeyId- The ARN of the AWS KMS key used for KMS_BASED_ENCRYPTION. Required when EncryptionConfiguration.EncryptionType is KMS_BASED_ENCRYPTION.- Returns:
this
-
tags
Sets the value ofCfnWorkspaceProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
workspaceDescription
@Stability(Stable) public CfnWorkspaceProps.Builder workspaceDescription(String workspaceDescription) Sets the value ofCfnWorkspaceProps.getWorkspaceDescription()- Parameters:
workspaceDescription- A description of the workspace.- 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
-