Class PricingDetail

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

public class PricingDetail extends Object implements Serializable, Cloneable

Describes a Reserved Instance offering.

See Also:
  • Constructor Details

    • PricingDetail

      public PricingDetail()
  • Method Details

    • setPrice

      public void setPrice(Double price)

      The price per instance.

      Parameters:
      price - The price per instance.
    • getPrice

      public Double getPrice()

      The price per instance.

      Returns:
      The price per instance.
    • withPrice

      public PricingDetail withPrice(Double price)

      The price per instance.

      Parameters:
      price - The price per instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCount

      public void setCount(Integer count)

      The number of reservations available for the price.

      Parameters:
      count - The number of reservations available for the price.
    • getCount

      public Integer getCount()

      The number of reservations available for the price.

      Returns:
      The number of reservations available for the price.
    • withCount

      public PricingDetail withCount(Integer count)

      The number of reservations available for the price.

      Parameters:
      count - The number of reservations available for the price.
      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 PricingDetail clone()
      Overrides:
      clone in class Object