com.amazonaws.services.ec2.model

## クラス PurchaseReservedInstancesOfferingRequest

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

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

      public class PurchaseReservedInstancesOfferingRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `PurchaseReservedInstancesOffering operation`.

  The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

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

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

    コンストラクタ
    コンストラクタと説明
    `PurchaseReservedInstancesOfferingRequest()` Default constructor for a new PurchaseReservedInstancesOfferingRequest object.
    `PurchaseReservedInstancesOfferingRequest(java.lang.String reservedInstancesOfferingId, java.lang.Integer instanceCount)` Constructs a new PurchaseReservedInstancesOfferingRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getInstanceCount()` The number of Reserved Instances to purchase.
    `ReservedInstanceLimitPrice` | `getLimitPrice()` Returns the value of the LimitPrice property for this object.
    `java.lang.String` | `getReservedInstancesOfferingId()` The unique ID of the Reserved Instances offering being purchased.
    `int` | `hashCode()`
    `void` | `setInstanceCount(java.lang.Integer instanceCount)` The number of Reserved Instances to purchase.
    `void` | `setLimitPrice(ReservedInstanceLimitPrice limitPrice)` Sets the value of the LimitPrice property for this object.
    `void` | `setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)` The unique ID of the Reserved Instances offering being purchased.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `PurchaseReservedInstancesOfferingRequest` | `withInstanceCount(java.lang.Integer instanceCount)` The number of Reserved Instances to purchase.
    `PurchaseReservedInstancesOfferingRequest` | `withLimitPrice(ReservedInstanceLimitPrice limitPrice)` Sets the value of the LimitPrice property for this object.
    `PurchaseReservedInstancesOfferingRequest` | `withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)` The unique ID of the Reserved Instances offering being purchased.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### PurchaseReservedInstancesOfferingRequest

          public PurchaseReservedInstancesOfferingRequest()

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

    - #### PurchaseReservedInstancesOfferingRequest

          public PurchaseReservedInstancesOfferingRequest(java.lang.String reservedInstancesOfferingId,
                                                  java.lang.Integer instanceCount)

      Constructs a new PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `reservedInstancesOfferingId` - The unique ID of the Reserved Instances offering being purchased.
        `instanceCount` - The number of Reserved Instances to purchase.

  - ### メソッドの詳細

    - #### getReservedInstancesOfferingId

          public java.lang.String getReservedInstancesOfferingId()

      The unique ID of the Reserved Instances offering being purchased.
      戻り値:
        The unique ID of the Reserved Instances offering being purchased.

    - #### setReservedInstancesOfferingId

          public void setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)

      The unique ID of the Reserved Instances offering being purchased.
      パラメータ:
        `reservedInstancesOfferingId` - The unique ID of the Reserved Instances offering being purchased.

    - #### withReservedInstancesOfferingId

          public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)

      The unique ID of the Reserved Instances offering being purchased.

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

      パラメータ:
        `reservedInstancesOfferingId` - The unique ID of the Reserved Instances offering being purchased.

    - #### getInstanceCount

          public java.lang.Integer getInstanceCount()

      The number of Reserved Instances to purchase.
      戻り値:
        The number of Reserved Instances to purchase.

    - #### setInstanceCount

          public void setInstanceCount(java.lang.Integer instanceCount)

      The number of Reserved Instances to purchase.
      パラメータ:
        `instanceCount` - The number of Reserved Instances to purchase.

    - #### withInstanceCount

          public PurchaseReservedInstancesOfferingRequest withInstanceCount(java.lang.Integer instanceCount)

      The number of Reserved Instances to purchase.

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

      パラメータ:
        `instanceCount` - The number of Reserved Instances to purchase.

    - #### getLimitPrice

          public ReservedInstanceLimitPrice getLimitPrice()

      Returns the value of the LimitPrice property for this object.
      戻り値:
        The value of the LimitPrice property for this object.

    - #### setLimitPrice

          public void setLimitPrice(ReservedInstanceLimitPrice limitPrice)

      Sets the value of the LimitPrice property for this object.
      パラメータ:
        `limitPrice` - The new value for the LimitPrice property for this object.

    - #### withLimitPrice

          public PurchaseReservedInstancesOfferingRequest withLimitPrice(ReservedInstanceLimitPrice limitPrice)

      Sets the value of the LimitPrice property for this object.

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

      パラメータ:
        `limitPrice` - The new value for the LimitPrice property for this object.

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