Class CfnClusterPropsMixin.PlacementGroupConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.PlacementGroupConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.PlacementGroupConfigProperty>
- Enclosing interface:
CfnClusterPropsMixin.PlacementGroupConfigProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.PlacementGroupConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.PlacementGroupConfigProperty>
A builder for
CfnClusterPropsMixin.PlacementGroupConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceRole(String instanceRole) Sets the value ofCfnClusterPropsMixin.PlacementGroupConfigProperty.getInstanceRole()placementStrategy(String placementStrategy) Sets the value ofCfnClusterPropsMixin.PlacementGroupConfigProperty.getPlacementStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceRole
@Stability(Stable) public CfnClusterPropsMixin.PlacementGroupConfigProperty.Builder instanceRole(String instanceRole) Sets the value ofCfnClusterPropsMixin.PlacementGroupConfigProperty.getInstanceRole()- Parameters:
instanceRole- Role of the instance in the cluster. Starting with Amazon EMR release 5.23.0, the only supported instance role isMASTER.- Returns:
this
-
placementStrategy
@Stability(Stable) public CfnClusterPropsMixin.PlacementGroupConfigProperty.Builder placementStrategy(String placementStrategy) Sets the value ofCfnClusterPropsMixin.PlacementGroupConfigProperty.getPlacementStrategy()- Parameters:
placementStrategy- Amazon EC2 Placement Group strategy associated with instance role. Starting with Amazon EMR release 5.23.0, the only supported placement strategy isSPREADfor theMASTERinstance role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.PlacementGroupConfigProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.PlacementGroupConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-