public class PricingDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a Reserved Instance offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
count
The number of reservations available for the price.
|
private java.lang.Double |
price
The price per instance.
|
Constructor and Description |
---|
PricingDetail() |
Modifier and Type | Method and Description |
---|---|
PricingDetail |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCount()
The number of reservations available for the price.
|
java.lang.Double |
getPrice()
The price per instance.
|
int |
hashCode() |
void |
setCount(java.lang.Integer count)
The number of reservations available for the price.
|
void |
setPrice(java.lang.Double price)
The price per instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PricingDetail |
withCount(java.lang.Integer count)
The number of reservations available for the price.
|
PricingDetail |
withPrice(java.lang.Double price)
The price per instance.
|
private java.lang.Double price
The price per instance.
private java.lang.Integer count
The number of reservations available for the price.
public void setPrice(java.lang.Double price)
The price per instance.
price
- The price per instance.public java.lang.Double getPrice()
The price per instance.
public PricingDetail withPrice(java.lang.Double price)
The price per instance.
price
- The price per instance.public void setCount(java.lang.Integer count)
The number of reservations available for the price.
count
- The number of reservations available for the price.public java.lang.Integer getCount()
The number of reservations available for the price.
public PricingDetail withCount(java.lang.Integer count)
The number of reservations available for the price.
count
- The number of reservations available for the price.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PricingDetail clone()
clone
in class java.lang.Object