public class RecurringCharge
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specifies whether charges for devices will be recurring.
Modifier and Type | Field and Description |
---|---|
private MonetaryAmount |
cost
The cost of the recurring charge.
|
private java.lang.String |
frequency
The frequency in which charges will recur.
|
Constructor and Description |
---|
RecurringCharge() |
Modifier and Type | Method and Description |
---|---|
RecurringCharge |
clone() |
boolean |
equals(java.lang.Object obj) |
MonetaryAmount |
getCost()
The cost of the recurring charge.
|
java.lang.String |
getFrequency()
The frequency in which charges will recur.
|
int |
hashCode() |
void |
setCost(MonetaryAmount cost)
The cost of the recurring charge.
|
void |
setFrequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
|
void |
setFrequency(java.lang.String frequency)
The frequency in which charges will recur.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RecurringCharge |
withCost(MonetaryAmount cost)
The cost of the recurring charge.
|
RecurringCharge |
withFrequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
|
RecurringCharge |
withFrequency(java.lang.String frequency)
The frequency in which charges will recur.
|
private MonetaryAmount cost
The cost of the recurring charge.
private java.lang.String frequency
The frequency in which charges will recur.
public void setCost(MonetaryAmount cost)
The cost of the recurring charge.
cost
- The cost of the recurring charge.public MonetaryAmount getCost()
The cost of the recurring charge.
public RecurringCharge withCost(MonetaryAmount cost)
The cost of the recurring charge.
cost
- The cost of the recurring charge.public void setFrequency(java.lang.String frequency)
The frequency in which charges will recur.
frequency
- The frequency in which charges will recur.RecurringChargeFrequency
public java.lang.String getFrequency()
The frequency in which charges will recur.
RecurringChargeFrequency
public RecurringCharge withFrequency(java.lang.String frequency)
The frequency in which charges will recur.
frequency
- The frequency in which charges will recur.RecurringChargeFrequency
public void setFrequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
frequency
- The frequency in which charges will recur.RecurringChargeFrequency
public RecurringCharge withFrequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
frequency
- The frequency in which charges will recur.RecurringChargeFrequency
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RecurringCharge clone()
clone
in class java.lang.Object