@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageBasedPricingTerm extends Object implements Serializable, Cloneable, StructuredPojo
Defines a usage-based pricing model (typically, pay-as-you-go pricing), where the customers are charged based on product usage.
Constructor and Description |
---|
UsageBasedPricingTerm() |
Modifier and Type | Method and Description |
---|---|
UsageBasedPricingTerm |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
Defines the currency for the prices mentioned in the term.
|
List<UsageBasedRateCardItem> |
getRateCards()
List of rate cards.
|
String |
getType()
Category of the term.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in the term.
|
void |
setRateCards(Collection<UsageBasedRateCardItem> rateCards)
List of rate cards.
|
void |
setType(String type)
Category of the term.
|
String |
toString()
Returns a string representation of this object.
|
UsageBasedPricingTerm |
withCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in the term.
|
UsageBasedPricingTerm |
withRateCards(Collection<UsageBasedRateCardItem> rateCards)
List of rate cards.
|
UsageBasedPricingTerm |
withRateCards(UsageBasedRateCardItem... rateCards)
List of rate cards.
|
UsageBasedPricingTerm |
withType(String type)
Category of the term.
|
public void setCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in the term.
currencyCode
- Defines the currency for the prices mentioned in the term.public String getCurrencyCode()
Defines the currency for the prices mentioned in the term.
public UsageBasedPricingTerm withCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in the term.
currencyCode
- Defines the currency for the prices mentioned in the term.public List<UsageBasedRateCardItem> getRateCards()
List of rate cards.
public void setRateCards(Collection<UsageBasedRateCardItem> rateCards)
List of rate cards.
rateCards
- List of rate cards.public UsageBasedPricingTerm withRateCards(UsageBasedRateCardItem... rateCards)
List of rate cards.
NOTE: This method appends the values to the existing list (if any). Use
setRateCards(java.util.Collection)
or withRateCards(java.util.Collection)
if you want to
override the existing values.
rateCards
- List of rate cards.public UsageBasedPricingTerm withRateCards(Collection<UsageBasedRateCardItem> rateCards)
List of rate cards.
rateCards
- List of rate cards.public void setType(String type)
Category of the term.
type
- Category of the term.public String getType()
Category of the term.
public UsageBasedPricingTerm withType(String type)
Category of the term.
type
- Category of the term.public String toString()
toString
in class Object
Object.toString()
public UsageBasedPricingTerm clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.