@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SavingsPlanRate extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Savings Plan rate.
Constructor and Description |
---|
SavingsPlanRate() |
Modifier and Type | Method and Description |
---|---|
SavingsPlanRate |
clone() |
boolean |
equals(Object obj) |
String |
getCurrency()
The currency.
|
String |
getOperation()
The specific Amazon Web Services operation for the line item in the billing report.
|
String |
getProductType()
The product type.
|
List<SavingsPlanRateProperty> |
getProperties()
The properties.
|
String |
getRate()
The rate.
|
String |
getServiceCode()
The service.
|
String |
getUnit()
The unit.
|
String |
getUsageType()
The usage details of the line item in the billing report.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrency(String currency)
The currency.
|
void |
setOperation(String operation)
The specific Amazon Web Services operation for the line item in the billing report.
|
void |
setProductType(String productType)
The product type.
|
void |
setProperties(Collection<SavingsPlanRateProperty> properties)
The properties.
|
void |
setRate(String rate)
The rate.
|
void |
setServiceCode(String serviceCode)
The service.
|
void |
setUnit(String unit)
The unit.
|
void |
setUsageType(String usageType)
The usage details of the line item in the billing report.
|
String |
toString()
Returns a string representation of this object.
|
SavingsPlanRate |
withCurrency(CurrencyCode currency)
The currency.
|
SavingsPlanRate |
withCurrency(String currency)
The currency.
|
SavingsPlanRate |
withOperation(String operation)
The specific Amazon Web Services operation for the line item in the billing report.
|
SavingsPlanRate |
withProductType(SavingsPlanProductType productType)
The product type.
|
SavingsPlanRate |
withProductType(String productType)
The product type.
|
SavingsPlanRate |
withProperties(Collection<SavingsPlanRateProperty> properties)
The properties.
|
SavingsPlanRate |
withProperties(SavingsPlanRateProperty... properties)
The properties.
|
SavingsPlanRate |
withRate(String rate)
The rate.
|
SavingsPlanRate |
withServiceCode(SavingsPlanRateServiceCode serviceCode)
The service.
|
SavingsPlanRate |
withServiceCode(String serviceCode)
The service.
|
SavingsPlanRate |
withUnit(SavingsPlanRateUnit unit)
The unit.
|
SavingsPlanRate |
withUnit(String unit)
The unit.
|
SavingsPlanRate |
withUsageType(String usageType)
The usage details of the line item in the billing report.
|
public void setRate(String rate)
The rate.
rate
- The rate.public String getRate()
The rate.
public SavingsPlanRate withRate(String rate)
The rate.
rate
- The rate.public void setCurrency(String currency)
The currency.
currency
- The currency.CurrencyCode
public String getCurrency()
The currency.
CurrencyCode
public SavingsPlanRate withCurrency(String currency)
The currency.
currency
- The currency.CurrencyCode
public SavingsPlanRate withCurrency(CurrencyCode currency)
The currency.
currency
- The currency.CurrencyCode
public void setUnit(String unit)
The unit.
unit
- The unit.SavingsPlanRateUnit
public String getUnit()
The unit.
SavingsPlanRateUnit
public SavingsPlanRate withUnit(String unit)
The unit.
unit
- The unit.SavingsPlanRateUnit
public SavingsPlanRate withUnit(SavingsPlanRateUnit unit)
The unit.
unit
- The unit.SavingsPlanRateUnit
public void setProductType(String productType)
The product type.
productType
- The product type.SavingsPlanProductType
public String getProductType()
The product type.
SavingsPlanProductType
public SavingsPlanRate withProductType(String productType)
The product type.
productType
- The product type.SavingsPlanProductType
public SavingsPlanRate withProductType(SavingsPlanProductType productType)
The product type.
productType
- The product type.SavingsPlanProductType
public void setServiceCode(String serviceCode)
The service.
serviceCode
- The service.SavingsPlanRateServiceCode
public String getServiceCode()
The service.
SavingsPlanRateServiceCode
public SavingsPlanRate withServiceCode(String serviceCode)
The service.
serviceCode
- The service.SavingsPlanRateServiceCode
public SavingsPlanRate withServiceCode(SavingsPlanRateServiceCode serviceCode)
The service.
serviceCode
- The service.SavingsPlanRateServiceCode
public void setUsageType(String usageType)
The usage details of the line item in the billing report.
usageType
- The usage details of the line item in the billing report.public String getUsageType()
The usage details of the line item in the billing report.
public SavingsPlanRate withUsageType(String usageType)
The usage details of the line item in the billing report.
usageType
- The usage details of the line item in the billing report.public void setOperation(String operation)
The specific Amazon Web Services operation for the line item in the billing report.
operation
- The specific Amazon Web Services operation for the line item in the billing report.public String getOperation()
The specific Amazon Web Services operation for the line item in the billing report.
public SavingsPlanRate withOperation(String operation)
The specific Amazon Web Services operation for the line item in the billing report.
operation
- The specific Amazon Web Services operation for the line item in the billing report.public List<SavingsPlanRateProperty> getProperties()
The properties.
public void setProperties(Collection<SavingsPlanRateProperty> properties)
The properties.
properties
- The properties.public SavingsPlanRate withProperties(SavingsPlanRateProperty... properties)
The properties.
NOTE: This method appends the values to the existing list (if any). Use
setProperties(java.util.Collection)
or withProperties(java.util.Collection)
if you want to
override the existing values.
properties
- The properties.public SavingsPlanRate withProperties(Collection<SavingsPlanRateProperty> properties)
The properties.
properties
- The properties.public String toString()
toString
in class Object
Object.toString()
public SavingsPlanRate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.