com.amazonaws.services.ec2.model

## クラス Reservation

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

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

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

  An Amazon EC2 reservation of requested EC2 instances.

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

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

    コンストラクタ
    コンストラクタと説明
    `Reservation()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<java.lang.String>` | `getGroupNames()` The list of security groups requested for the instances in this reservation.
    `java.util.List<GroupIdentifier>` | `getGroups()` The list of security groups requested for the instances in this reservation.
    `java.util.List<Instance>` | `getInstances()` The list of Amazon EC2 instances included in this reservation.
    `java.lang.String` | `getOwnerId()` The AWS Access Key ID of the user who owns the reservation.
    `java.lang.String` | `getRequesterId()` The unique ID of the user who requested the instances in this reservation.
    `java.lang.String` | `getReservationId()` The unique ID of this reservation.
    `int` | `hashCode()`
    `void` | `setGroupNames(java.util.Collection<java.lang.String> groupNames)` The list of security groups requested for the instances in this reservation.
    `void` | `setGroups(java.util.Collection<GroupIdentifier> groups)` The list of security groups requested for the instances in this reservation.
    `void` | `setInstances(java.util.Collection<Instance> instances)` The list of Amazon EC2 instances included in this reservation.
    `void` | `setOwnerId(java.lang.String ownerId)` The AWS Access Key ID of the user who owns the reservation.
    `void` | `setRequesterId(java.lang.String requesterId)` The unique ID of the user who requested the instances in this reservation.
    `void` | `setReservationId(java.lang.String reservationId)` The unique ID of this reservation.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Reservation` | `withGroupNames(java.util.Collection<java.lang.String> groupNames)` The list of security groups requested for the instances in this reservation.
    `Reservation` | `withGroupNames(java.lang.String... groupNames)` The list of security groups requested for the instances in this reservation.
    `Reservation` | `withGroups(java.util.Collection<GroupIdentifier> groups)` The list of security groups requested for the instances in this reservation.
    `Reservation` | `withGroups(GroupIdentifier... groups)` The list of security groups requested for the instances in this reservation.
    `Reservation` | `withInstances(java.util.Collection<Instance> instances)` The list of Amazon EC2 instances included in this reservation.
    `Reservation` | `withInstances(Instance... instances)` The list of Amazon EC2 instances included in this reservation.
    `Reservation` | `withOwnerId(java.lang.String ownerId)` The AWS Access Key ID of the user who owns the reservation.
    `Reservation` | `withRequesterId(java.lang.String requesterId)` The unique ID of the user who requested the instances in this reservation.
    `Reservation` | `withReservationId(java.lang.String reservationId)` The unique ID of this reservation.

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

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

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

    - #### Reservation

          public Reservation()

  - ### メソッドの詳細

    - #### getReservationId

          public java.lang.String getReservationId()

      The unique ID of this reservation.
      戻り値:
        The unique ID of this reservation.

    - #### setReservationId

          public void setReservationId(java.lang.String reservationId)

      The unique ID of this reservation.
      パラメータ:
        `reservationId` - The unique ID of this reservation.

    - #### withReservationId

          public Reservation withReservationId(java.lang.String reservationId)

      The unique ID of this reservation.

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

      パラメータ:
        `reservationId` - The unique ID of this reservation.

    - #### getOwnerId

          public java.lang.String getOwnerId()

      The AWS Access Key ID of the user who owns the reservation.
      戻り値:
        The AWS Access Key ID of the user who owns the reservation.

    - #### setOwnerId

          public void setOwnerId(java.lang.String ownerId)

      The AWS Access Key ID of the user who owns the reservation.
      パラメータ:
        `ownerId` - The AWS Access Key ID of the user who owns the reservation.

    - #### withOwnerId

          public Reservation withOwnerId(java.lang.String ownerId)

      The AWS Access Key ID of the user who owns the reservation.

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

      パラメータ:
        `ownerId` - The AWS Access Key ID of the user who owns the reservation.

    - #### getRequesterId

          public java.lang.String getRequesterId()

      The unique ID of the user who requested the instances in this reservation.
      戻り値:
        The unique ID of the user who requested the instances in this reservation.

    - #### setRequesterId

          public void setRequesterId(java.lang.String requesterId)

      The unique ID of the user who requested the instances in this reservation.
      パラメータ:
        `requesterId` - The unique ID of the user who requested the instances in this reservation.

    - #### withRequesterId

          public Reservation withRequesterId(java.lang.String requesterId)

      The unique ID of the user who requested the instances in this reservation.

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

      パラメータ:
        `requesterId` - The unique ID of the user who requested the instances in this reservation.

    - #### getGroups

          public java.util.List<GroupIdentifier> getGroups()

      The list of security groups requested for the instances in this reservation.
      戻り値:
        The list of security groups requested for the instances in this reservation.

    - #### setGroups

          public void setGroups(java.util.Collection<GroupIdentifier> groups)

      The list of security groups requested for the instances in this reservation.
      パラメータ:
        `groups` - The list of security groups requested for the instances in this reservation.

    - #### withGroups

          public Reservation withGroups(GroupIdentifier... groups)

      The list of security groups requested for the instances in this reservation.

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

      パラメータ:
        `groups` - The list of security groups requested for the instances in this reservation.

    - #### withGroups

          public Reservation withGroups(java.util.Collection<GroupIdentifier> groups)

      The list of security groups requested for the instances in this reservation.

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

      パラメータ:
        `groups` - The list of security groups requested for the instances in this reservation.

    - #### getGroupNames

          public java.util.List<java.lang.String> getGroupNames()

      The list of security groups requested for the instances in this reservation.
      戻り値:
        The list of security groups requested for the instances in this reservation.

    - #### setGroupNames

          public void setGroupNames(java.util.Collection<java.lang.String> groupNames)

      The list of security groups requested for the instances in this reservation.
      パラメータ:
        `groupNames` - The list of security groups requested for the instances in this reservation.

    - #### withGroupNames

          public Reservation withGroupNames(java.lang.String... groupNames)

      The list of security groups requested for the instances in this reservation.

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

      パラメータ:
        `groupNames` - The list of security groups requested for the instances in this reservation.

    - #### withGroupNames

          public Reservation withGroupNames(java.util.Collection<java.lang.String> groupNames)

      The list of security groups requested for the instances in this reservation.

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

      パラメータ:
        `groupNames` - The list of security groups requested for the instances in this reservation.

    - #### getInstances

          public java.util.List<Instance> getInstances()

      The list of Amazon EC2 instances included in this reservation.
      戻り値:
        The list of Amazon EC2 instances included in this reservation.

    - #### setInstances

          public void setInstances(java.util.Collection<Instance> instances)

      The list of Amazon EC2 instances included in this reservation.
      パラメータ:
        `instances` - The list of Amazon EC2 instances included in this reservation.

    - #### withInstances

          public Reservation withInstances(Instance... instances)

      The list of Amazon EC2 instances included in this reservation.

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

      パラメータ:
        `instances` - The list of Amazon EC2 instances included in this reservation.

    - #### withInstances

          public Reservation withInstances(java.util.Collection<Instance> instances)

      The list of Amazon EC2 instances included in this reservation.

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

      パラメータ:
        `instances` - The list of Amazon EC2 instances included in this reservation.

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