Class ReservedInstancesListing

java.lang.Object
com.amazonaws.services.ec2.model.ReservedInstancesListing
All Implemented Interfaces:
Serializable, Cloneable

public class ReservedInstancesListing extends Object implements Serializable, Cloneable

Describes a Reserved Instance listing.

See Also:
  • Constructor Details

    • ReservedInstancesListing

      public ReservedInstancesListing()
  • Method Details

    • setReservedInstancesListingId

      public void setReservedInstancesListingId(String reservedInstancesListingId)

      The ID of the Reserved Instance listing.

      Parameters:
      reservedInstancesListingId - The ID of the Reserved Instance listing.
    • getReservedInstancesListingId

      public String getReservedInstancesListingId()

      The ID of the Reserved Instance listing.

      Returns:
      The ID of the Reserved Instance listing.
    • withReservedInstancesListingId

      public ReservedInstancesListing withReservedInstancesListingId(String reservedInstancesListingId)

      The ID of the Reserved Instance listing.

      Parameters:
      reservedInstancesListingId - The ID of the Reserved Instance listing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setReservedInstancesId

      public void setReservedInstancesId(String reservedInstancesId)

      The ID of the Reserved Instance.

      Parameters:
      reservedInstancesId - The ID of the Reserved Instance.
    • getReservedInstancesId

      public String getReservedInstancesId()

      The ID of the Reserved Instance.

      Returns:
      The ID of the Reserved Instance.
    • withReservedInstancesId

      public ReservedInstancesListing withReservedInstancesId(String reservedInstancesId)

      The ID of the Reserved Instance.

      Parameters:
      reservedInstancesId - The ID of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreateDate

      public void setCreateDate(Date createDate)

      The time the listing was created.

      Parameters:
      createDate - The time the listing was created.
    • getCreateDate

      public Date getCreateDate()

      The time the listing was created.

      Returns:
      The time the listing was created.
    • withCreateDate

      public ReservedInstancesListing withCreateDate(Date createDate)

      The time the listing was created.

      Parameters:
      createDate - The time the listing was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUpdateDate

      public void setUpdateDate(Date updateDate)

      The last modified timestamp of the listing.

      Parameters:
      updateDate - The last modified timestamp of the listing.
    • getUpdateDate

      public Date getUpdateDate()

      The last modified timestamp of the listing.

      Returns:
      The last modified timestamp of the listing.
    • withUpdateDate

      public ReservedInstancesListing withUpdateDate(Date updateDate)

      The last modified timestamp of the listing.

      Parameters:
      updateDate - The last modified timestamp of the listing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStatus

      public void setStatus(String status)

      The status of the Reserved Instance listing.

      Parameters:
      status - The status of the Reserved Instance listing.
      See Also:
    • getStatus

      public String getStatus()

      The status of the Reserved Instance listing.

      Returns:
      The status of the Reserved Instance listing.
      See Also:
    • withStatus

      public ReservedInstancesListing withStatus(String status)

      The status of the Reserved Instance listing.

      Parameters:
      status - The status of the Reserved Instance listing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setStatus

      public void setStatus(ListingStatus status)

      The status of the Reserved Instance listing.

      Parameters:
      status - The status of the Reserved Instance listing.
      See Also:
    • withStatus

      public ReservedInstancesListing withStatus(ListingStatus status)

      The status of the Reserved Instance listing.

      Parameters:
      status - The status of the Reserved Instance listing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setStatusMessage

      public void setStatusMessage(String statusMessage)

      The reason for the current status of the Reserved Instance listing. The response can be blank.

      Parameters:
      statusMessage - The reason for the current status of the Reserved Instance listing. The response can be blank.
    • getStatusMessage

      public String getStatusMessage()

      The reason for the current status of the Reserved Instance listing. The response can be blank.

      Returns:
      The reason for the current status of the Reserved Instance listing. The response can be blank.
    • withStatusMessage

      public ReservedInstancesListing withStatusMessage(String statusMessage)

      The reason for the current status of the Reserved Instance listing. The response can be blank.

      Parameters:
      statusMessage - The reason for the current status of the Reserved Instance listing. The response can be blank.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getInstanceCounts

      public List<InstanceCount> getInstanceCounts()

      The number of instances in this state.

      Returns:
      The number of instances in this state.
    • setInstanceCounts

      public void setInstanceCounts(Collection<InstanceCount> instanceCounts)

      The number of instances in this state.

      Parameters:
      instanceCounts - The number of instances in this state.
    • withInstanceCounts

      public ReservedInstancesListing withInstanceCounts(InstanceCount... instanceCounts)

      The number of instances in this state.

      NOTE: This method appends the values to the existing list (if any). Use setInstanceCounts(java.util.Collection) or withInstanceCounts(java.util.Collection) if you want to override the existing values.

      Parameters:
      instanceCounts - The number of instances in this state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withInstanceCounts

      public ReservedInstancesListing withInstanceCounts(Collection<InstanceCount> instanceCounts)

      The number of instances in this state.

      Parameters:
      instanceCounts - The number of instances in this state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getPriceSchedules

      public List<PriceSchedule> getPriceSchedules()

      The price of the Reserved Instance listing.

      Returns:
      The price of the Reserved Instance listing.
    • setPriceSchedules

      public void setPriceSchedules(Collection<PriceSchedule> priceSchedules)

      The price of the Reserved Instance listing.

      Parameters:
      priceSchedules - The price of the Reserved Instance listing.
    • withPriceSchedules

      public ReservedInstancesListing withPriceSchedules(PriceSchedule... priceSchedules)

      The price of the Reserved Instance listing.

      NOTE: This method appends the values to the existing list (if any). Use setPriceSchedules(java.util.Collection) or withPriceSchedules(java.util.Collection) if you want to override the existing values.

      Parameters:
      priceSchedules - The price of the Reserved Instance listing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withPriceSchedules

      public ReservedInstancesListing withPriceSchedules(Collection<PriceSchedule> priceSchedules)

      The price of the Reserved Instance listing.

      Parameters:
      priceSchedules - The price of the Reserved Instance listing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getTags

      public List<Tag> getTags()

      Any tags assigned to the resource.

      Returns:
      Any tags assigned to the resource.
    • setTags

      public void setTags(Collection<Tag> tags)

      Any tags assigned to the resource.

      Parameters:
      tags - Any tags assigned to the resource.
    • withTags

      public ReservedInstancesListing withTags(Tag... tags)

      Any tags assigned to the resource.

      NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

      Parameters:
      tags - Any tags assigned to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      public ReservedInstancesListing withTags(Collection<Tag> tags)

      Any tags assigned to the resource.

      Parameters:
      tags - Any tags assigned to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setClientToken

      public void setClientToken(String clientToken)

      A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

      Parameters:
      clientToken - A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
    • getClientToken

      public String getClientToken()

      A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

      Returns:
      A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
    • withClientToken

      public ReservedInstancesListing withClientToken(String clientToken)

      A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

      Parameters:
      clientToken - A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ReservedInstancesListing clone()
      Overrides:
      clone in class Object