Class RecurringCharge
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.RecurringCharge
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RecurringCharge extends Object implements Serializable, Cloneable
Specifies whether charges for devices will be recurring.
- 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)
MonetaryAmount
getCost()
The cost of the recurring charge.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(String frequency)
The frequency in which charges will recur.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(String frequency)
The frequency in which charges will recur.
-
-
-
Method Detail
-
setCost
public void setCost(MonetaryAmount cost)
The cost of the recurring charge.
- Parameters:
cost
- The cost of the recurring charge.
-
getCost
public MonetaryAmount getCost()
The cost of the recurring charge.
- Returns:
- The cost of the recurring charge.
-
withCost
public RecurringCharge withCost(MonetaryAmount cost)
The cost of the recurring charge.
- Parameters:
cost
- The cost of the recurring charge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFrequency
public void setFrequency(String frequency)
The frequency in which charges will recur.
- Parameters:
frequency
- The frequency in which charges will recur.- See Also:
RecurringChargeFrequency
-
getFrequency
public String getFrequency()
The frequency in which charges will recur.
- Returns:
- The frequency in which charges will recur.
- See Also:
RecurringChargeFrequency
-
withFrequency
public RecurringCharge withFrequency(String frequency)
The frequency in which charges will recur.
- Parameters:
frequency
- The frequency in which charges will recur.- 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 in which charges will recur.
- Parameters:
frequency
- The frequency in which charges will recur.- See Also:
RecurringChargeFrequency
-
withFrequency
public RecurringCharge withFrequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
- Parameters:
frequency
- The frequency in which charges will recur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecurringChargeFrequency
-
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()
-
-