com.amazonaws.services.ec2.model

## クラス Placement

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

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

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

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

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

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

    コンストラクタ
    コンストラクタと説明
    `Placement()` Default constructor for a new Placement object.
    `Placement(java.lang.String availabilityZone)` Constructs a new Placement 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.
    `java.lang.String` | `getTenancy()` The allowed tenancy of instances launched into the VPC.
    `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.
    `void` | `setTenancy(java.lang.String tenancy)` The allowed tenancy of instances launched into the VPC.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Placement` | `withAvailabilityZone(java.lang.String availabilityZone)` The availability zone in which an Amazon EC2 instance runs.
    `Placement` | `withGroupName(java.lang.String groupName)` The name of the PlacementGroup in which an Amazon EC2 instance runs.
    `Placement` | `withTenancy(java.lang.String tenancy)` The allowed tenancy of instances launched into the VPC.

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

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

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

    - #### Placement

          public Placement()

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

    - #### Placement

          public Placement(java.lang.String availabilityZone)

      Constructs a new Placement 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 Placement 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 Placement 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.

    - #### getTenancy

          public java.lang.String getTenancy()

      The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.
      戻り値:
        The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

    - #### setTenancy

          public void setTenancy(java.lang.String tenancy)

      The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.
      パラメータ:
        `tenancy` - The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

    - #### withTenancy

          public Placement withTenancy(java.lang.String tenancy)

      The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

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

      パラメータ:
        `tenancy` - The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

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