@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlacementGroupConfig extends Object implements Serializable, Cloneable, StructuredPojo
Placement group configuration for an Amazon EMR cluster. The configuration specifies the placement strategy that can be applied to instance roles during cluster creation.
To use this configuration, consider attaching managed policy AmazonElasticMapReducePlacementGroupPolicy to the Amazon EMR role.
| Constructor and Description |
|---|
PlacementGroupConfig() |
| Modifier and Type | Method and Description |
|---|---|
PlacementGroupConfig |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceRole()
Role of the instance in the cluster.
|
String |
getPlacementStrategy()
Amazon EC2 Placement Group strategy associated with instance role.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setInstanceRole(String instanceRole)
Role of the instance in the cluster.
|
void |
setPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
|
String |
toString()
Returns a string representation of this object.
|
PlacementGroupConfig |
withInstanceRole(InstanceRoleType instanceRole)
Role of the instance in the cluster.
|
PlacementGroupConfig |
withInstanceRole(String instanceRole)
Role of the instance in the cluster.
|
PlacementGroupConfig |
withPlacementStrategy(PlacementGroupStrategy placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
|
PlacementGroupConfig |
withPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
|
public void setInstanceRole(String instanceRole)
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
instanceRole - Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
InstanceRoleTypepublic String getInstanceRole()
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
InstanceRoleTypepublic PlacementGroupConfig withInstanceRole(String instanceRole)
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
instanceRole - Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
InstanceRoleTypepublic PlacementGroupConfig withInstanceRole(InstanceRoleType instanceRole)
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
instanceRole - Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
InstanceRoleTypepublic void setPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the
MASTER instance role.
placementStrategy - Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for
the MASTER instance role.
PlacementGroupStrategypublic String getPlacementStrategy()
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the
MASTER instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for
the MASTER instance role.
PlacementGroupStrategypublic PlacementGroupConfig withPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the
MASTER instance role.
placementStrategy - Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for
the MASTER instance role.
PlacementGroupStrategypublic PlacementGroupConfig withPlacementStrategy(PlacementGroupStrategy placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the
MASTER instance role.
placementStrategy - Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for
the MASTER instance role.
PlacementGroupStrategypublic String toString()
toString in class ObjectObject.toString()public PlacementGroupConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.