Class CfnCluster.PlacementGroupConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.PlacementGroupConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.PlacementGroupConfigProperty>
- Enclosing interface:
CfnCluster.PlacementGroupConfigProperty
@Stability(Stable)
public static final class CfnCluster.PlacementGroupConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.PlacementGroupConfigProperty>
A builder for
CfnCluster.PlacementGroupConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceRole(String instanceRole) Sets the value ofCfnCluster.PlacementGroupConfigProperty.getInstanceRole()placementStrategy(String placementStrategy) Sets the value ofCfnCluster.PlacementGroupConfigProperty.getPlacementStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceRole
@Stability(Stable) public CfnCluster.PlacementGroupConfigProperty.Builder instanceRole(String instanceRole) Sets the value ofCfnCluster.PlacementGroupConfigProperty.getInstanceRole()- Parameters:
instanceRole- Role of the instance in the cluster. This parameter is required. Starting with Amazon EMR release 5.23.0, the only supported instance role isMASTER.- Returns:
this
-
placementStrategy
@Stability(Stable) public CfnCluster.PlacementGroupConfigProperty.Builder placementStrategy(String placementStrategy) Sets the value ofCfnCluster.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<CfnCluster.PlacementGroupConfigProperty>- Returns:
- a new instance of
CfnCluster.PlacementGroupConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-