com.amazonaws.services.ec2.model

## クラス ReservedInstances

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

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

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

  A group of Amazon EC2 Reserved Instances purchased by this account.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAvailabilityZone()` The Availability Zone in which the Reserved Instances can be used.
    `java.lang.String` | `getCurrencyCode()` The currency of the reserved instance.
    `java.lang.Long` | `getDuration()` The duration of the Reserved Instances, in seconds.
    `java.lang.Float` | `getFixedPrice()` The purchase price of the Reserved Instances.
    `java.lang.Integer` | `getInstanceCount()` The number of Reserved Instances purchased.
    `java.lang.String` | `getInstanceTenancy()` The tenancy of the reserved instance (ex: default or dedicated).
    `java.lang.String` | `getInstanceType()` The instance type on which the Reserved Instances can be used.
    `java.lang.String` | `getOfferingType()` The Reserved Instance offering type.
    `java.lang.String` | `getProductDescription()` The Reserved Instances product description (ex: Windows or Unix/Linux).
    `java.util.List<RecurringCharge>` | `getRecurringCharges()` The recurring charge tag assigned to the resource.
    `java.lang.String` | `getReservedInstancesId()` The unique ID of the Reserved Instances purchase.
    `java.util.Date` | `getStart()` The date and time the Reserved Instances started.
    `java.lang.String` | `getState()` The state of the Reserved Instances purchase.
    `java.util.List<Tag>` | `getTags()` A list of tags for the ReservedInstances.
    `java.lang.Float` | `getUsagePrice()` The usage price of the Reserved Instances, per hour.
    `int` | `hashCode()`
    `void` | `setAvailabilityZone(java.lang.String availabilityZone)` The Availability Zone in which the Reserved Instances can be used.
    `void` | `setCurrencyCode(java.lang.String currencyCode)` The currency of the reserved instance.
    `void` | `setDuration(java.lang.Long duration)` The duration of the Reserved Instances, in seconds.
    `void` | `setFixedPrice(java.lang.Float fixedPrice)` The purchase price of the Reserved Instances.
    `void` | `setInstanceCount(java.lang.Integer instanceCount)` The number of Reserved Instances purchased.
    `void` | `setInstanceTenancy(java.lang.String instanceTenancy)` The tenancy of the reserved instance (ex: default or dedicated).
    `void` | `setInstanceType(InstanceType instanceType)` The instance type on which the Reserved Instances can be used.
    `void` | `setInstanceType(java.lang.String instanceType)` The instance type on which the Reserved Instances can be used.
    `void` | `setOfferingType(java.lang.String offeringType)` The Reserved Instance offering type.
    `void` | `setProductDescription(java.lang.String productDescription)` The Reserved Instances product description (ex: Windows or Unix/Linux).
    `void` | `setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)` The recurring charge tag assigned to the resource.
    `void` | `setReservedInstancesId(java.lang.String reservedInstancesId)` The unique ID of the Reserved Instances purchase.
    `void` | `setStart(java.util.Date start)` The date and time the Reserved Instances started.
    `void` | `setState(java.lang.String state)` The state of the Reserved Instances purchase.
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for the ReservedInstances.
    `void` | `setUsagePrice(java.lang.Float usagePrice)` The usage price of the Reserved Instances, per hour.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ReservedInstances` | `withAvailabilityZone(java.lang.String availabilityZone)` The Availability Zone in which the Reserved Instances can be used.
    `ReservedInstances` | `withCurrencyCode(java.lang.String currencyCode)` The currency of the reserved instance.
    `ReservedInstances` | `withDuration(java.lang.Long duration)` The duration of the Reserved Instances, in seconds.
    `ReservedInstances` | `withFixedPrice(java.lang.Float fixedPrice)` The purchase price of the Reserved Instances.
    `ReservedInstances` | `withInstanceCount(java.lang.Integer instanceCount)` The number of Reserved Instances purchased.
    `ReservedInstances` | `withInstanceTenancy(java.lang.String instanceTenancy)` The tenancy of the reserved instance (ex: default or dedicated).
    `ReservedInstances` | `withInstanceType(InstanceType instanceType)` The instance type on which the Reserved Instances can be used.
    `ReservedInstances` | `withInstanceType(java.lang.String instanceType)` The instance type on which the Reserved Instances can be used.
    `ReservedInstances` | `withOfferingType(java.lang.String offeringType)` The Reserved Instance offering type.
    `ReservedInstances` | `withProductDescription(java.lang.String productDescription)` The Reserved Instances product description (ex: Windows or Unix/Linux).
    `ReservedInstances` | `withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)` The recurring charge tag assigned to the resource.
    `ReservedInstances` | `withRecurringCharges(RecurringCharge... recurringCharges)` The recurring charge tag assigned to the resource.
    `ReservedInstances` | `withReservedInstancesId(java.lang.String reservedInstancesId)` The unique ID of the Reserved Instances purchase.
    `ReservedInstances` | `withStart(java.util.Date start)` The date and time the Reserved Instances started.
    `ReservedInstances` | `withState(java.lang.String state)` The state of the Reserved Instances purchase.
    `ReservedInstances` | `withTags(java.util.Collection<Tag> tags)` A list of tags for the ReservedInstances.
    `ReservedInstances` | `withTags(Tag... tags)` A list of tags for the ReservedInstances.
    `ReservedInstances` | `withUsagePrice(java.lang.Float usagePrice)` The usage price of the Reserved Instances, per hour.

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

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

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

    - #### ReservedInstances

          public ReservedInstances()

  - ### メソッドの詳細

    - #### getReservedInstancesId

          public java.lang.String getReservedInstancesId()

      The unique ID of the Reserved Instances purchase.
      戻り値:
        The unique ID of the Reserved Instances purchase.

    - #### setReservedInstancesId

          public void setReservedInstancesId(java.lang.String reservedInstancesId)

      The unique ID of the Reserved Instances purchase.
      パラメータ:
        `reservedInstancesId` - The unique ID of the Reserved Instances purchase.

    - #### withReservedInstancesId

          public ReservedInstances withReservedInstancesId(java.lang.String reservedInstancesId)

      The unique ID of the Reserved Instances purchase.

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

      パラメータ:
        `reservedInstancesId` - The unique ID of the Reserved Instances purchase.

    - #### getInstanceType

          public java.lang.String getInstanceType()

      The instance type on which the Reserved Instances can be used.

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      戻り値:
        The instance type on which the Reserved Instances can be used.
      関連項目:
        `InstanceType`

    - #### setInstanceType

          public void setInstanceType(java.lang.String instanceType)

      The instance type on which the Reserved Instances can be used.

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - The instance type on which the Reserved Instances can be used.
      関連項目:
        `InstanceType`

    - #### withInstanceType

          public ReservedInstances withInstanceType(java.lang.String instanceType)

      The instance type on which the Reserved Instances can be used.

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

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - The instance type on which the Reserved Instances can be used.
      関連項目:
        `InstanceType`

    - #### setInstanceType

          public void setInstanceType(InstanceType instanceType)

      The instance type on which the Reserved Instances can be used.

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - The instance type on which the Reserved Instances can be used.
      関連項目:
        `InstanceType`

    - #### withInstanceType

          public ReservedInstances withInstanceType(InstanceType instanceType)

      The instance type on which the Reserved Instances can be used.

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

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - The instance type on which the Reserved Instances can be used.
      関連項目:
        `InstanceType`

    - #### getAvailabilityZone

          public java.lang.String getAvailabilityZone()

      The Availability Zone in which the Reserved Instances can be used.
      戻り値:
        The Availability Zone in which the Reserved Instances can be used.

    - #### setAvailabilityZone

          public void setAvailabilityZone(java.lang.String availabilityZone)

      The Availability Zone in which the Reserved Instances can be used.
      パラメータ:
        `availabilityZone` - The Availability Zone in which the Reserved Instances can be used.

    - #### withAvailabilityZone

          public ReservedInstances withAvailabilityZone(java.lang.String availabilityZone)

      The Availability Zone in which the Reserved Instances can be used.

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

      パラメータ:
        `availabilityZone` - The Availability Zone in which the Reserved Instances can be used.

    - #### getStart

          public java.util.Date getStart()

      The date and time the Reserved Instances started.
      戻り値:
        The date and time the Reserved Instances started.

    - #### setStart

          public void setStart(java.util.Date start)

      The date and time the Reserved Instances started.
      パラメータ:
        `start` - The date and time the Reserved Instances started.

    - #### withStart

          public ReservedInstances withStart(java.util.Date start)

      The date and time the Reserved Instances started.

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

      パラメータ:
        `start` - The date and time the Reserved Instances started.

    - #### getDuration

          public java.lang.Long getDuration()

      The duration of the Reserved Instances, in seconds.
      戻り値:
        The duration of the Reserved Instances, in seconds.

    - #### setDuration

          public void setDuration(java.lang.Long duration)

      The duration of the Reserved Instances, in seconds.
      パラメータ:
        `duration` - The duration of the Reserved Instances, in seconds.

    - #### withDuration

          public ReservedInstances withDuration(java.lang.Long duration)

      The duration of the Reserved Instances, in seconds.

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

      パラメータ:
        `duration` - The duration of the Reserved Instances, in seconds.

    - #### getUsagePrice

          public java.lang.Float getUsagePrice()

      The usage price of the Reserved Instances, per hour.
      戻り値:
        The usage price of the Reserved Instances, per hour.

    - #### setUsagePrice

          public void setUsagePrice(java.lang.Float usagePrice)

      The usage price of the Reserved Instances, per hour.
      パラメータ:
        `usagePrice` - The usage price of the Reserved Instances, per hour.

    - #### withUsagePrice

          public ReservedInstances withUsagePrice(java.lang.Float usagePrice)

      The usage price of the Reserved Instances, per hour.

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

      パラメータ:
        `usagePrice` - The usage price of the Reserved Instances, per hour.

    - #### getFixedPrice

          public java.lang.Float getFixedPrice()

      The purchase price of the Reserved Instances.
      戻り値:
        The purchase price of the Reserved Instances.

    - #### setFixedPrice

          public void setFixedPrice(java.lang.Float fixedPrice)

      The purchase price of the Reserved Instances.
      パラメータ:
        `fixedPrice` - The purchase price of the Reserved Instances.

    - #### withFixedPrice

          public ReservedInstances withFixedPrice(java.lang.Float fixedPrice)

      The purchase price of the Reserved Instances.

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

      パラメータ:
        `fixedPrice` - The purchase price of the Reserved Instances.

    - #### getInstanceCount

          public java.lang.Integer getInstanceCount()

      The number of Reserved Instances purchased.
      戻り値:
        The number of Reserved Instances purchased.

    - #### setInstanceCount

          public void setInstanceCount(java.lang.Integer instanceCount)

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

    - #### withInstanceCount

          public ReservedInstances withInstanceCount(java.lang.Integer instanceCount)

      The number of Reserved Instances purchased.

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

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

    - #### getProductDescription

          public java.lang.String getProductDescription()

      The Reserved Instances product description (ex: Windows or Unix/Linux).
      戻り値:
        The Reserved Instances product description (ex: Windows or Unix/Linux).

    - #### setProductDescription

          public void setProductDescription(java.lang.String productDescription)

      The Reserved Instances product description (ex: Windows or Unix/Linux).
      パラメータ:
        `productDescription` - The Reserved Instances product description (ex: Windows or Unix/Linux).

    - #### withProductDescription

          public ReservedInstances withProductDescription(java.lang.String productDescription)

      The Reserved Instances product description (ex: Windows or Unix/Linux).

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

      パラメータ:
        `productDescription` - The Reserved Instances product description (ex: Windows or Unix/Linux).

    - #### getState

          public java.lang.String getState()

      The state of the Reserved Instances purchase.
      戻り値:
        The state of the Reserved Instances purchase.

    - #### setState

          public void setState(java.lang.String state)

      The state of the Reserved Instances purchase.
      パラメータ:
        `state` - The state of the Reserved Instances purchase.

    - #### withState

          public ReservedInstances withState(java.lang.String state)

      The state of the Reserved Instances purchase.

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

      パラメータ:
        `state` - The state of the Reserved Instances purchase.

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for the ReservedInstances.
      戻り値:
        A list of tags for the ReservedInstances.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for the ReservedInstances.
      パラメータ:
        `tags` - A list of tags for the ReservedInstances.

    - #### withTags

          public ReservedInstances withTags(Tag... tags)

      A list of tags for the ReservedInstances.

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

      パラメータ:
        `tags` - A list of tags for the ReservedInstances.

    - #### withTags

          public ReservedInstances withTags(java.util.Collection<Tag> tags)

      A list of tags for the ReservedInstances.

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

      パラメータ:
        `tags` - A list of tags for the ReservedInstances.

    - #### getInstanceTenancy

          public java.lang.String getInstanceTenancy()

      The tenancy of the reserved instance (ex: default or dedicated).
      戻り値:
        The tenancy of the reserved instance (ex: default or dedicated).

    - #### setInstanceTenancy

          public void setInstanceTenancy(java.lang.String instanceTenancy)

      The tenancy of the reserved instance (ex: default or dedicated).
      パラメータ:
        `instanceTenancy` - The tenancy of the reserved instance (ex: default or dedicated).

    - #### withInstanceTenancy

          public ReservedInstances withInstanceTenancy(java.lang.String instanceTenancy)

      The tenancy of the reserved instance (ex: default or dedicated).

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

      パラメータ:
        `instanceTenancy` - The tenancy of the reserved instance (ex: default or dedicated).

    - #### getCurrencyCode

          public java.lang.String getCurrencyCode()

      The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).
      戻り値:
        The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

    - #### setCurrencyCode

          public void setCurrencyCode(java.lang.String currencyCode)

      The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).
      パラメータ:
        `currencyCode` - The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

    - #### withCurrencyCode

          public ReservedInstances withCurrencyCode(java.lang.String currencyCode)

      The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

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

      パラメータ:
        `currencyCode` - The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

    - #### getOfferingType

          public java.lang.String getOfferingType()

      The Reserved Instance offering type.
      戻り値:
        The Reserved Instance offering type.

    - #### setOfferingType

          public void setOfferingType(java.lang.String offeringType)

      The Reserved Instance offering type.
      パラメータ:
        `offeringType` - The Reserved Instance offering type.

    - #### withOfferingType

          public ReservedInstances withOfferingType(java.lang.String offeringType)

      The Reserved Instance offering type.

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

      パラメータ:
        `offeringType` - The Reserved Instance offering type.

    - #### getRecurringCharges

          public java.util.List<RecurringCharge> getRecurringCharges()

      The recurring charge tag assigned to the resource.
      戻り値:
        The recurring charge tag assigned to the resource.

    - #### setRecurringCharges

          public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)

      The recurring charge tag assigned to the resource.
      パラメータ:
        `recurringCharges` - The recurring charge tag assigned to the resource.

    - #### withRecurringCharges

          public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)

      The recurring charge tag assigned to the resource.

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

      パラメータ:
        `recurringCharges` - The recurring charge tag assigned to the resource.

    - #### withRecurringCharges

          public ReservedInstances withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)

      The recurring charge tag assigned to the resource.

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

      パラメータ:
        `recurringCharges` - The recurring charge tag assigned to the resource.

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