Class CfnWorkspaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.awsexternalanthropic.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.dataResidency(IResolvable dataResidency) Sets the value ofCfnWorkspaceProps.getDataResidency()dataResidency(CfnWorkspace.DataResidencyProperty dataResidency) Sets the value ofCfnWorkspaceProps.getDataResidency()Sets the value ofCfnWorkspaceProps.getName()Sets the value ofCfnWorkspaceProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnWorkspaceProps.getName()- Parameters:
name- The name of the workspace. This parameter is required.- Returns:
this
-
dataResidency
Sets the value ofCfnWorkspaceProps.getDataResidency()- Parameters:
dataResidency- Data residency configuration for the workspace. WorkspaceGeo is immutable after creation.- Returns:
this
-
dataResidency
@Stability(Stable) public CfnWorkspaceProps.Builder dataResidency(CfnWorkspace.DataResidencyProperty dataResidency) Sets the value ofCfnWorkspaceProps.getDataResidency()- Parameters:
dataResidency- Data residency configuration for the workspace. WorkspaceGeo is immutable after creation.- Returns:
this
-
tags
Sets the value ofCfnWorkspaceProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- 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
-