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