com.amazonaws.services.ec2.model
Class ReservedInstanceLimitPrice

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

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

Describes the limit price of a Reserved Instance offering.

See Also:
Serialized Form

Constructor Summary
ReservedInstanceLimitPrice()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Double getAmount()
          Used for Reserved Instance Marketplace offerings.
 java.lang.String getCurrencyCode()
          The currency in which the limitPrice amount is specified.
 int hashCode()
           
 void setAmount(java.lang.Double amount)
          Used for Reserved Instance Marketplace offerings.
 void setCurrencyCode(CurrencyCodeValues currencyCode)
          The currency in which the limitPrice amount is specified.
 void setCurrencyCode(java.lang.String currencyCode)
          The currency in which the limitPrice amount is specified.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReservedInstanceLimitPrice withAmount(java.lang.Double amount)
          Used for Reserved Instance Marketplace offerings.
 ReservedInstanceLimitPrice withCurrencyCode(CurrencyCodeValues currencyCode)
          The currency in which the limitPrice amount is specified.
 ReservedInstanceLimitPrice withCurrencyCode(java.lang.String currencyCode)
          The currency in which the limitPrice amount is specified.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedInstanceLimitPrice

public ReservedInstanceLimitPrice()
Method Detail

getAmount

public java.lang.Double getAmount()
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

Returns:
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

setAmount

public void setAmount(java.lang.Double amount)
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

Parameters:
amount - Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

withAmount

public ReservedInstanceLimitPrice withAmount(java.lang.Double amount)
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

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

Parameters:
amount - Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
Returns:
A reference to this updated object so that method calls can be chained together.

getCurrencyCode

public java.lang.String getCurrencyCode()
The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

Returns:
The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.
See Also:
CurrencyCodeValues

setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

Parameters:
currencyCode - The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.
See Also:
CurrencyCodeValues

withCurrencyCode

public ReservedInstanceLimitPrice withCurrencyCode(java.lang.String currencyCode)
The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

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

Constraints:
Allowed Values: USD

Parameters:
currencyCode - The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
CurrencyCodeValues

setCurrencyCode

public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

Parameters:
currencyCode - The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.
See Also:
CurrencyCodeValues

withCurrencyCode

public ReservedInstanceLimitPrice withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

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

Constraints:
Allowed Values: USD

Parameters:
currencyCode - The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
CurrencyCodeValues

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.