com.amazonaws.services.ec2.model
Class PricingDetail

java.lang.Object
  extended by com.amazonaws.services.ec2.model.PricingDetail
All Implemented Interfaces:
java.io.Serializable

public class PricingDetail
extends java.lang.Object
implements java.io.Serializable

Describes a Reserved Instance offering.

See Also:
Serialized Form

Constructor Summary
PricingDetail()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getCount()
          The number of instances available for the price.
 java.lang.Double getPrice()
          The price per instance.
 int hashCode()
           
 void setCount(java.lang.Integer count)
          The number of instances 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 instances available for the price.
 PricingDetail withPrice(java.lang.Double price)
          The price per instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PricingDetail

public PricingDetail()
Method Detail

getPrice

public java.lang.Double getPrice()
The price per instance.

Returns:
The price per instance.

setPrice

public void setPrice(java.lang.Double price)
The price per instance.

Parameters:
price - The price per instance.

withPrice

public PricingDetail withPrice(java.lang.Double price)
The price per instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
price - The price per instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getCount

public java.lang.Integer getCount()
The number of instances available for the price.

Returns:
The number of instances available for the price.

setCount

public void setCount(java.lang.Integer count)
The number of instances available for the price.

Parameters:
count - The number of instances available for the price.

withCount

public PricingDetail withCount(java.lang.Integer count)
The number of instances available for the price.

Returns a reference to this object so that method calls can be chained together.

Parameters:
count - The number of instances available for the price.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.