com.amazonaws.services.ec2.model

## クラス PlacementGroup

- java.lang.Object
- - com.amazonaws.services.ec2.model.PlacementGroup

- すべての実装されたインタフェース:
    java.io.Serializable

      public class PlacementGroup
      extends java.lang.Object
      implements java.io.Serializable

  Represents a placement group into which multiple Amazon EC2 instances can be launched. A placement group ensures that Amazon EC2 instances are physically located close enough to support HPC features, such as higher IO network connections between instances in the group.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `PlacementGroup()` Default constructor for a new PlacementGroup object.
    `PlacementGroup(java.lang.String groupName)` Constructs a new PlacementGroup object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getGroupName()` The name of this `PlacementGroup`.
    `java.lang.String` | `getState()` The state of this `PlacementGroup`.
    `java.lang.String` | `getStrategy()` The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
    `int` | `hashCode()`
    `void` | `setGroupName(java.lang.String groupName)` The name of this `PlacementGroup`.
    `void` | `setState(PlacementGroupState state)` The state of this `PlacementGroup`.
    `void` | `setState(java.lang.String state)` The state of this `PlacementGroup`.
    `void` | `setStrategy(PlacementStrategy strategy)` The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
    `void` | `setStrategy(java.lang.String strategy)` The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `PlacementGroup` | `withGroupName(java.lang.String groupName)` The name of this `PlacementGroup`.
    `PlacementGroup` | `withState(PlacementGroupState state)` The state of this `PlacementGroup`.
    `PlacementGroup` | `withState(java.lang.String state)` The state of this `PlacementGroup`.
    `PlacementGroup` | `withStrategy(PlacementStrategy strategy)` The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
    `PlacementGroup` | `withStrategy(java.lang.String strategy)` The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### PlacementGroup

          public PlacementGroup()

      Default constructor for a new PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### PlacementGroup

          public PlacementGroup(java.lang.String groupName)

      Constructs a new PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `groupName` - The name of this `PlacementGroup`.

  - ### メソッドの詳細

    - #### getGroupName

          public java.lang.String getGroupName()

      The name of this `PlacementGroup`.
      戻り値:
        The name of this `PlacementGroup`.

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

      The name of this `PlacementGroup`.
      パラメータ:
        `groupName` - The name of this `PlacementGroup`.

    - #### withGroupName

          public PlacementGroup withGroupName(java.lang.String groupName)

      The name of this `PlacementGroup`.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `groupName` - The name of this `PlacementGroup`.

    - #### getStrategy

          public java.lang.String getStrategy()

      The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.

      Constraints:
      Allowed Values: cluster

      戻り値:
        The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
      関連項目:
        `PlacementStrategy`

    - #### setStrategy

          public void setStrategy(java.lang.String strategy)

      The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
      関連項目:
        `PlacementStrategy`

    - #### withStrategy

          public PlacementGroup withStrategy(java.lang.String strategy)

      The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
      関連項目:
        `PlacementStrategy`

    - #### setStrategy

          public void setStrategy(PlacementStrategy strategy)

      The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
      関連項目:
        `PlacementStrategy`

    - #### withStrategy

          public PlacementGroup withStrategy(PlacementStrategy strategy)

      The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The strategy to use when allocating Amazon EC2 instances for the `PlacementGroup`.
      関連項目:
        `PlacementStrategy`

    - #### getState

          public java.lang.String getState()

      The state of this `PlacementGroup`.

      Constraints:
      Allowed Values: pending, available, deleting, deleted

      戻り値:
        The state of this `PlacementGroup`.
      関連項目:
        `PlacementGroupState`

    - #### setState

          public void setState(java.lang.String state)

      The state of this `PlacementGroup`.

      Constraints:
      Allowed Values: pending, available, deleting, deleted

      パラメータ:
        `state` - The state of this `PlacementGroup`.
      関連項目:
        `PlacementGroupState`

    - #### withState

          public PlacementGroup withState(java.lang.String state)

      The state of this `PlacementGroup`.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: pending, available, deleting, deleted

      パラメータ:
        `state` - The state of this `PlacementGroup`.
      関連項目:
        `PlacementGroupState`

    - #### setState

          public void setState(PlacementGroupState state)

      The state of this `PlacementGroup`.

      Constraints:
      Allowed Values: pending, available, deleting, deleted

      パラメータ:
        `state` - The state of this `PlacementGroup`.
      関連項目:
        `PlacementGroupState`

    - #### withState

          public PlacementGroup withState(PlacementGroupState state)

      The state of this `PlacementGroup`.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: pending, available, deleting, deleted

      パラメータ:
        `state` - The state of this `PlacementGroup`.
      関連項目:
        `PlacementGroupState`

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`