com.amazonaws.services.ec2.model

## クラス CreatePlacementGroupRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CreatePlacementGroupRequest

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

      public class CreatePlacementGroupRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreatePlacementGroup operation`.

  Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name unique within the scope of the user account.

  関連項目:
    `AmazonEC2.createPlacementGroup(CreatePlacementGroupRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

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

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreatePlacementGroupRequest

          public CreatePlacementGroupRequest()

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

    - #### CreatePlacementGroupRequest

          public CreatePlacementGroupRequest(java.lang.String groupName,
                                     java.lang.String strategy)

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

    - #### CreatePlacementGroupRequest

          public CreatePlacementGroupRequest(java.lang.String groupName,
                                     PlacementStrategy strategy)

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

  - ### メソッドの詳細

    - #### getGroupName

          public java.lang.String getGroupName()

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

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

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

    - #### withGroupName

          public CreatePlacementGroupRequest withGroupName(java.lang.String groupName)

      The name of the `PlacementGroup`.

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

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

    - #### getStrategy

          public java.lang.String getStrategy()

      The `PlacementGroup` strategy.

      Constraints:
      Allowed Values: cluster

      戻り値:
        The `PlacementGroup` strategy.
      関連項目:
        `PlacementStrategy`

    - #### setStrategy

          public void setStrategy(java.lang.String strategy)

      The `PlacementGroup` strategy.

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The `PlacementGroup` strategy.
      関連項目:
        `PlacementStrategy`

    - #### withStrategy

          public CreatePlacementGroupRequest withStrategy(java.lang.String strategy)

      The `PlacementGroup` strategy.

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

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The `PlacementGroup` strategy.
      関連項目:
        `PlacementStrategy`

    - #### setStrategy

          public void setStrategy(PlacementStrategy strategy)

      The `PlacementGroup` strategy.

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The `PlacementGroup` strategy.
      関連項目:
        `PlacementStrategy`

    - #### withStrategy

          public CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)

      The `PlacementGroup` strategy.

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

      Constraints:
      Allowed Values: cluster

      パラメータ:
        `strategy` - The `PlacementGroup` strategy.
      関連項目:
        `PlacementStrategy`

    - #### 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`