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 PricingDetail
clone()
boolean
equals(Object obj)
Integer
getCount()
The number of reservations available for the price.Double
getPrice()
The price per instance.int
hashCode()
void
setCount(Integer count)
The number of reservations available for the price.void
setPrice(Double price)
The price per instance.String
toString()
Returns a string representation of this object; useful for testing and debugging.PricingDetail
withCount(Integer count)
The number of reservations available for the price.PricingDetail
withPrice(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PricingDetail clone()
-
-