Class CfnWorkspaceInstance.PlacementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.PlacementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.PlacementProperty>
- Enclosing interface:
CfnWorkspaceInstance.PlacementProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.PlacementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.PlacementProperty>
A builder for
CfnWorkspaceInstance.PlacementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofCfnWorkspaceInstance.PlacementProperty.getAvailabilityZone()build()Builds the configured instance.Sets the value ofCfnWorkspaceInstance.PlacementProperty.getGroupId()Sets the value ofCfnWorkspaceInstance.PlacementProperty.getGroupName()partitionNumber(Number partitionNumber) Sets the value ofCfnWorkspaceInstance.PlacementProperty.getPartitionNumber()Sets the value ofCfnWorkspaceInstance.PlacementProperty.getTenancy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnWorkspaceInstance.PlacementProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnWorkspaceInstance.PlacementProperty.getAvailabilityZone()- Parameters:
availabilityZone- the value to be set.- Returns:
this
-
groupId
Sets the value ofCfnWorkspaceInstance.PlacementProperty.getGroupId()- Parameters:
groupId- the value to be set.- Returns:
this
-
groupName
@Stability(Stable) public CfnWorkspaceInstance.PlacementProperty.Builder groupName(String groupName) Sets the value ofCfnWorkspaceInstance.PlacementProperty.getGroupName()- Parameters:
groupName- the value to be set.- Returns:
this
-
partitionNumber
@Stability(Stable) public CfnWorkspaceInstance.PlacementProperty.Builder partitionNumber(Number partitionNumber) Sets the value ofCfnWorkspaceInstance.PlacementProperty.getPartitionNumber()- Parameters:
partitionNumber- the value to be set.- Returns:
this
-
tenancy
Sets the value ofCfnWorkspaceInstance.PlacementProperty.getTenancy()- Parameters:
tenancy- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.PlacementProperty>- Returns:
- a new instance of
CfnWorkspaceInstance.PlacementProperty - Throws:
NullPointerException- if any required attribute was not provided
-