Class PlacementGroupConfig

    • 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, instanceRole will return InstanceRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from instanceRoleAsString().

        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, instanceRole will return InstanceRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from instanceRoleAsString().

        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 SPREAD for the MASTER instance role.

        If the service returns an enum value that is not available in the current SDK version, placementStrategy will return PlacementGroupStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from placementStrategyAsString().

        Returns:
        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.

        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 SPREAD for the MASTER instance role.

        If the service returns an enum value that is not available in the current SDK version, placementStrategy will return PlacementGroupStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from placementStrategyAsString().

        Returns:
        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.

        See Also:
        PlacementGroupStrategy
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)