com.amazonaws.services.ec2.model
Class RecurringCharge

java.lang.Object
  extended by com.amazonaws.services.ec2.model.RecurringCharge

public class RecurringCharge
extends Object

Represents a usage charge for Amazon EC2 resources that repeats on a schedule.


Constructor Summary
RecurringCharge()
           
 
Method Summary
 boolean equals(Object obj)
           
 Double getAmount()
          The amount of the recurring charge.
 String getFrequency()
          The frequency of the recurring charge.
 int hashCode()
           
 void setAmount(Double amount)
          The amount of the recurring charge.
 void setFrequency(String frequency)
          The frequency of the recurring charge.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RecurringCharge withAmount(Double amount)
          The amount of the recurring charge.
 RecurringCharge withFrequency(String frequency)
          The frequency of the recurring charge.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecurringCharge

public RecurringCharge()
Method Detail

getFrequency

public String getFrequency()
The frequency of the recurring charge.

Returns:
The frequency of the recurring charge.

setFrequency

public void setFrequency(String frequency)
The frequency of the recurring charge.

Parameters:
frequency - The frequency of the recurring charge.

withFrequency

public RecurringCharge withFrequency(String frequency)
The frequency of the recurring charge.

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

Parameters:
frequency - The frequency of the recurring charge.
Returns:
A reference to this updated object so that method calls can be chained together.

getAmount

public Double getAmount()
The amount of the recurring charge.

Returns:
The amount of the recurring charge.

setAmount

public void setAmount(Double amount)
The amount of the recurring charge.

Parameters:
amount - The amount of the recurring charge.

withAmount

public RecurringCharge withAmount(Double amount)
The amount of the recurring charge.

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

Parameters:
amount - The amount of the recurring charge.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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