Package com.amazonaws.services.ec2.model
Class RecurringCharge
- java.lang.Object
-
- com.amazonaws.services.ec2.model.RecurringCharge
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RecurringCharge extends Object implements Serializable, Cloneable
Describes a recurring charge.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecurringCharge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecurringCharge
clone()
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(RecurringChargeFrequency frequency)
The frequency 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(RecurringChargeFrequency frequency)
The frequency of the recurring charge.RecurringCharge
withFrequency(String frequency)
The frequency of the recurring charge.
-
-
-
Method Detail
-
setFrequency
public void setFrequency(String frequency)
The frequency of the recurring charge.
- Parameters:
frequency
- The frequency of the recurring charge.- See Also:
RecurringChargeFrequency
-
getFrequency
public String getFrequency()
The frequency of the recurring charge.
- Returns:
- The frequency of the recurring charge.
- See Also:
RecurringChargeFrequency
-
withFrequency
public RecurringCharge withFrequency(String frequency)
The frequency of the recurring charge.
- Parameters:
frequency
- The frequency of the recurring charge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecurringChargeFrequency
-
setFrequency
public void setFrequency(RecurringChargeFrequency frequency)
The frequency of the recurring charge.
- Parameters:
frequency
- The frequency of the recurring charge.- See Also:
RecurringChargeFrequency
-
withFrequency
public RecurringCharge withFrequency(RecurringChargeFrequency frequency)
The frequency of the recurring charge.
- Parameters:
frequency
- The frequency of the recurring charge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecurringChargeFrequency
-
setAmount
public void setAmount(Double amount)
The amount of the recurring charge.
- Parameters:
amount
- The amount of the recurring charge.
-
getAmount
public Double getAmount()
The amount of the recurring charge.
- Returns:
- The amount of the recurring charge.
-
withAmount
public RecurringCharge withAmount(Double amount)
The amount of the recurring charge.
- Parameters:
amount
- The amount of the recurring charge.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RecurringCharge clone()
-
-