Class PlacementGroupConfig
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.PlacementGroupConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PlacementGroupConfig.Builder,PlacementGroupConfig>
@Generated("software.amazon.awssdk:codegen") public final class PlacementGroupConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlacementGroupConfig.Builder,PlacementGroupConfig>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlacementGroupConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlacementGroupConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstanceRoleTypeinstanceRole()Role of the instance in the cluster.StringinstanceRoleAsString()Role of the instance in the cluster.PlacementGroupStrategyplacementStrategy()Amazon EC2 Placement Group strategy associated with instance role.StringplacementStrategyAsString()Amazon EC2 Placement Group strategy associated with instance role.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PlacementGroupConfig.Builder>serializableBuilderClass()PlacementGroupConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceRole
public final InstanceRoleType instanceRole()
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is
MASTER.If the service returns an enum value that is not available in the current SDK version,
instanceRolewill returnInstanceRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceRoleAsString().- Returns:
- Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is
MASTER. - See Also:
InstanceRoleType
-
instanceRoleAsString
public final String instanceRoleAsString()
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is
MASTER.If the service returns an enum value that is not available in the current SDK version,
instanceRolewill returnInstanceRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceRoleAsString().- Returns:
- Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is
MASTER. - See Also:
InstanceRoleType
-
placementStrategy
public final 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
SPREADfor theMASTERinstance role.If the service returns an enum value that is not available in the current SDK version,
placementStrategywill returnPlacementGroupStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplacementStrategyAsString().- Returns:
- Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is
SPREADfor theMASTERinstance role. - See Also:
PlacementGroupStrategy
-
placementStrategyAsString
public final String placementStrategyAsString()
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is
SPREADfor theMASTERinstance role.If the service returns an enum value that is not available in the current SDK version,
placementStrategywill returnPlacementGroupStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplacementStrategyAsString().- Returns:
- Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is
SPREADfor theMASTERinstance role. - See Also:
PlacementGroupStrategy
-
toBuilder
public PlacementGroupConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PlacementGroupConfig.Builder,PlacementGroupConfig>
-
builder
public static PlacementGroupConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends PlacementGroupConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-