Class CfnPlacementGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnPlacementGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlacementGroupMixinProps>
- Enclosing interface:
CfnPlacementGroupMixinProps
@Stability(Stable)
public static final class CfnPlacementGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlacementGroupMixinProps>
A builder for
CfnPlacementGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.partitionCount(Number partitionCount) Sets the value ofCfnPlacementGroupMixinProps.getPartitionCount()spreadLevel(String spreadLevel) Sets the value ofCfnPlacementGroupMixinProps.getSpreadLevel()Sets the value ofCfnPlacementGroupMixinProps.getStrategy()Sets the value ofCfnPlacementGroupMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionCount
Sets the value ofCfnPlacementGroupMixinProps.getPartitionCount()- Parameters:
partitionCount- The number of partitions. Valid only when Strategy is set topartition.- Returns:
this
-
spreadLevel
Sets the value ofCfnPlacementGroupMixinProps.getSpreadLevel()- Parameters:
spreadLevel- Determines how placement groups spread instances.- Host – You can use
hostonly with Outpost placement groups. - Rack – No usage restrictions.
- Host – You can use
- Returns:
this
-
strategy
Sets the value ofCfnPlacementGroupMixinProps.getStrategy()- Parameters:
strategy- The placement strategy.- Returns:
this
-
tags
Sets the value ofCfnPlacementGroupMixinProps.getTags()- Parameters:
tags- The tags to apply to the new placement group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlacementGroupMixinProps>- Returns:
- a new instance of
CfnPlacementGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-