public class RecurringCharge
extends java.lang.Object
implements java.io.Serializable
Describes a recurring charge.
Constructor and Description |
---|
RecurringCharge() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getAmount()
The amount of the recurring charge.
|
java.lang.String |
getFrequency()
The frequency of the recurring charge.
|
int |
hashCode() |
void |
setAmount(java.lang.Double amount)
The amount of the recurring charge.
|
void |
setFrequency(RecurringChargeFrequency frequency)
The frequency of the recurring charge.
|
void |
setFrequency(java.lang.String frequency)
The frequency of the recurring charge.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RecurringCharge |
withAmount(java.lang.Double amount)
The amount of the recurring charge.
|
RecurringCharge |
withFrequency(RecurringChargeFrequency frequency)
The frequency of the recurring charge.
|
RecurringCharge |
withFrequency(java.lang.String frequency)
The frequency of the recurring charge.
|
public java.lang.String getFrequency()
Constraints:
Allowed Values: Hourly
RecurringChargeFrequency
public void setFrequency(java.lang.String frequency)
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public RecurringCharge withFrequency(java.lang.String frequency)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public void setFrequency(RecurringChargeFrequency frequency)
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public RecurringCharge withFrequency(RecurringChargeFrequency frequency)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public java.lang.Double getAmount()
public void setAmount(java.lang.Double amount)
amount
- The amount of the recurring charge.public RecurringCharge withAmount(java.lang.Double amount)
Returns a reference to this object so that method calls can be chained together.
amount
- The amount of the recurring charge.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.