Class RecurringCharge
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.RecurringCharge
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RecurringCharge extends Object implements Serializable, Cloneable
Contains the specific price and frequency of a recurring charges for a reserved cache node, or for a reserved cache node offering.
- 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
getRecurringChargeAmount()
The monetary amount of the recurring charge.String
getRecurringChargeFrequency()
The frequency of the recurring charge.int
hashCode()
void
setRecurringChargeAmount(Double recurringChargeAmount)
The monetary amount of the recurring charge.void
setRecurringChargeFrequency(String recurringChargeFrequency)
The frequency of the recurring charge.String
toString()
Returns a string representation of this object; useful for testing and debugging.RecurringCharge
withRecurringChargeAmount(Double recurringChargeAmount)
The monetary amount of the recurring charge.RecurringCharge
withRecurringChargeFrequency(String recurringChargeFrequency)
The frequency of the recurring charge.
-
-
-
Method Detail
-
setRecurringChargeAmount
public void setRecurringChargeAmount(Double recurringChargeAmount)
The monetary amount of the recurring charge.
- Parameters:
recurringChargeAmount
- The monetary amount of the recurring charge.
-
getRecurringChargeAmount
public Double getRecurringChargeAmount()
The monetary amount of the recurring charge.
- Returns:
- The monetary amount of the recurring charge.
-
withRecurringChargeAmount
public RecurringCharge withRecurringChargeAmount(Double recurringChargeAmount)
The monetary amount of the recurring charge.
- Parameters:
recurringChargeAmount
- The monetary amount of the recurring charge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRecurringChargeFrequency
public void setRecurringChargeFrequency(String recurringChargeFrequency)
The frequency of the recurring charge.
- Parameters:
recurringChargeFrequency
- The frequency of the recurring charge.
-
getRecurringChargeFrequency
public String getRecurringChargeFrequency()
The frequency of the recurring charge.
- Returns:
- The frequency of the recurring charge.
-
withRecurringChargeFrequency
public RecurringCharge withRecurringChargeFrequency(String recurringChargeFrequency)
The frequency of the recurring charge.
- Parameters:
recurringChargeFrequency
- The frequency 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()
-
-