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