com.amazonaws.services.ec2.model

## クラス SpotPlacement

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

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

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

  Describes where an Amazon EC2 instance is running within an Amazon EC2 region.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAvailabilityZone()` The availability zone in which an Amazon EC2 instance runs.
    `java.lang.String` | `getGroupName()` The name of the PlacementGroup in which an Amazon EC2 instance runs.
    `int` | `hashCode()`
    `void` | `setAvailabilityZone(java.lang.String availabilityZone)` The availability zone in which an Amazon EC2 instance runs.
    `void` | `setGroupName(java.lang.String groupName)` The name of the PlacementGroup in which an Amazon EC2 instance runs.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `SpotPlacement` | `withAvailabilityZone(java.lang.String availabilityZone)` The availability zone in which an Amazon EC2 instance runs.
    `SpotPlacement` | `withGroupName(java.lang.String groupName)` The name of the PlacementGroup in which an Amazon EC2 instance runs.

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

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

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

    - #### SpotPlacement

          public SpotPlacement()

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

    - #### SpotPlacement

          public SpotPlacement(java.lang.String availabilityZone)

      Constructs a new SpotPlacement object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `availabilityZone` - The availability zone in which an Amazon EC2 instance runs.

  - ### メソッドの詳細

    - #### getAvailabilityZone

          public java.lang.String getAvailabilityZone()

      The availability zone in which an Amazon EC2 instance runs.
      戻り値:
        The availability zone in which an Amazon EC2 instance runs.

    - #### setAvailabilityZone

          public void setAvailabilityZone(java.lang.String availabilityZone)

      The availability zone in which an Amazon EC2 instance runs.
      パラメータ:
        `availabilityZone` - The availability zone in which an Amazon EC2 instance runs.

    - #### withAvailabilityZone

          public SpotPlacement withAvailabilityZone(java.lang.String availabilityZone)

      The availability zone in which an Amazon EC2 instance runs.

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

      パラメータ:
        `availabilityZone` - The availability zone in which an Amazon EC2 instance runs.

    - #### getGroupName

          public java.lang.String getGroupName()

      The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.
      戻り値:
        The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

      The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.
      パラメータ:
        `groupName` - The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

    - #### withGroupName

          public SpotPlacement withGroupName(java.lang.String groupName)

      The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

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

      パラメータ:
        `groupName` - The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

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