public class PricingDetail extends Object implements Serializable, Cloneable
Describes a Reserved Instance offering.
Constructor and Description |
---|
PricingDetail() |
Modifier and Type | Method and Description |
---|---|
PricingDetail |
clone() |
boolean |
equals(Object obj) |
Integer |
getCount()
The number of instances available for the price.
|
Double |
getPrice()
The price per instance.
|
int |
hashCode() |
void |
setCount(Integer count)
The number of instances 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 instances available for the price.
|
PricingDetail |
withPrice(Double price)
The price per instance.
|
public Double getPrice()
public void setPrice(Double price)
price
- The price per instance.public PricingDetail withPrice(Double price)
Returns a reference to this object so that method calls can be chained together.
price
- The price per instance.public Integer getCount()
public void setCount(Integer count)
count
- The number of instances available for the price.public PricingDetail withCount(Integer count)
Returns a reference to this object so that method calls can be chained together.
count
- The number of instances available for the price.public String toString()
toString
in class Object
Object.toString()
public PricingDetail clone()
Copyright © 2015. All rights reserved.