Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PricingDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PricingDetailclone()booleanequals(Object obj)IntegergetCount()The number of reservations available for the price.DoublegetPrice()The price per instance.inthashCode()voidsetCount(Integer count)The number of reservations available for the price.voidsetPrice(Double price)The price per instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.PricingDetailwithCount(Integer count)The number of reservations available for the price.PricingDetailwithPrice(Double price)The price per instance.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PricingDetail clone()
-
-