@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SavingsPlanOffering extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Savings Plan offering.
Constructor and Description |
---|
SavingsPlanOffering() |
Modifier and Type | Method and Description |
---|---|
SavingsPlanOffering |
clone() |
boolean |
equals(Object obj) |
String |
getCurrency()
The currency.
|
String |
getDescription()
The description.
|
Long |
getDurationSeconds()
The duration, in seconds.
|
String |
getOfferingId()
The ID of the offering.
|
String |
getOperation()
The specific Amazon Web Services operation for the line item in the billing report.
|
String |
getPaymentOption()
The payment option.
|
String |
getPlanType()
The plan type.
|
List<String> |
getProductTypes()
The product type.
|
List<SavingsPlanOfferingProperty> |
getProperties()
The properties.
|
String |
getServiceCode()
The service.
|
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 |
setDescription(String description)
The description.
|
void |
setDurationSeconds(Long durationSeconds)
The duration, in seconds.
|
void |
setOfferingId(String offeringId)
The ID of the offering.
|
void |
setOperation(String operation)
The specific Amazon Web Services operation for the line item in the billing report.
|
void |
setPaymentOption(String paymentOption)
The payment option.
|
void |
setPlanType(String planType)
The plan type.
|
void |
setProductTypes(Collection<String> productTypes)
The product type.
|
void |
setProperties(Collection<SavingsPlanOfferingProperty> properties)
The properties.
|
void |
setServiceCode(String serviceCode)
The service.
|
void |
setUsageType(String usageType)
The usage details of the line item in the billing report.
|
String |
toString()
Returns a string representation of this object.
|
SavingsPlanOffering |
withCurrency(CurrencyCode currency)
The currency.
|
SavingsPlanOffering |
withCurrency(String currency)
The currency.
|
SavingsPlanOffering |
withDescription(String description)
The description.
|
SavingsPlanOffering |
withDurationSeconds(Long durationSeconds)
The duration, in seconds.
|
SavingsPlanOffering |
withOfferingId(String offeringId)
The ID of the offering.
|
SavingsPlanOffering |
withOperation(String operation)
The specific Amazon Web Services operation for the line item in the billing report.
|
SavingsPlanOffering |
withPaymentOption(SavingsPlanPaymentOption paymentOption)
The payment option.
|
SavingsPlanOffering |
withPaymentOption(String paymentOption)
The payment option.
|
SavingsPlanOffering |
withPlanType(SavingsPlanType planType)
The plan type.
|
SavingsPlanOffering |
withPlanType(String planType)
The plan type.
|
SavingsPlanOffering |
withProductTypes(Collection<String> productTypes)
The product type.
|
SavingsPlanOffering |
withProductTypes(SavingsPlanProductType... productTypes)
The product type.
|
SavingsPlanOffering |
withProductTypes(String... productTypes)
The product type.
|
SavingsPlanOffering |
withProperties(Collection<SavingsPlanOfferingProperty> properties)
The properties.
|
SavingsPlanOffering |
withProperties(SavingsPlanOfferingProperty... properties)
The properties.
|
SavingsPlanOffering |
withServiceCode(String serviceCode)
The service.
|
SavingsPlanOffering |
withUsageType(String usageType)
The usage details of the line item in the billing report.
|
public void setOfferingId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public String getOfferingId()
The ID of the offering.
public SavingsPlanOffering withOfferingId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public List<String> getProductTypes()
The product type.
SavingsPlanProductType
public void setProductTypes(Collection<String> productTypes)
The product type.
productTypes
- The product type.SavingsPlanProductType
public SavingsPlanOffering withProductTypes(String... productTypes)
The product type.
NOTE: This method appends the values to the existing list (if any). Use
setProductTypes(java.util.Collection)
or withProductTypes(java.util.Collection)
if you want to
override the existing values.
productTypes
- The product type.SavingsPlanProductType
public SavingsPlanOffering withProductTypes(Collection<String> productTypes)
The product type.
productTypes
- The product type.SavingsPlanProductType
public SavingsPlanOffering withProductTypes(SavingsPlanProductType... productTypes)
The product type.
productTypes
- The product type.SavingsPlanProductType
public void setPlanType(String planType)
The plan type.
planType
- The plan type.SavingsPlanType
public String getPlanType()
The plan type.
SavingsPlanType
public SavingsPlanOffering withPlanType(String planType)
The plan type.
planType
- The plan type.SavingsPlanType
public SavingsPlanOffering withPlanType(SavingsPlanType planType)
The plan type.
planType
- The plan type.SavingsPlanType
public void setDescription(String description)
The description.
description
- The description.public String getDescription()
The description.
public SavingsPlanOffering withDescription(String description)
The description.
description
- The description.public void setPaymentOption(String paymentOption)
The payment option.
paymentOption
- The payment option.SavingsPlanPaymentOption
public String getPaymentOption()
The payment option.
SavingsPlanPaymentOption
public SavingsPlanOffering withPaymentOption(String paymentOption)
The payment option.
paymentOption
- The payment option.SavingsPlanPaymentOption
public SavingsPlanOffering withPaymentOption(SavingsPlanPaymentOption paymentOption)
The payment option.
paymentOption
- The payment option.SavingsPlanPaymentOption
public void setDurationSeconds(Long durationSeconds)
The duration, in seconds.
durationSeconds
- The duration, in seconds.public Long getDurationSeconds()
The duration, in seconds.
public SavingsPlanOffering withDurationSeconds(Long durationSeconds)
The duration, in seconds.
durationSeconds
- The duration, in seconds.public void setCurrency(String currency)
The currency.
currency
- The currency.CurrencyCode
public String getCurrency()
The currency.
CurrencyCode
public SavingsPlanOffering withCurrency(String currency)
The currency.
currency
- The currency.CurrencyCode
public SavingsPlanOffering withCurrency(CurrencyCode currency)
The currency.
currency
- The currency.CurrencyCode
public void setServiceCode(String serviceCode)
The service.
serviceCode
- The service.public String getServiceCode()
The service.
public SavingsPlanOffering withServiceCode(String serviceCode)
The service.
serviceCode
- The service.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 SavingsPlanOffering 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 SavingsPlanOffering 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<SavingsPlanOfferingProperty> getProperties()
The properties.
public void setProperties(Collection<SavingsPlanOfferingProperty> properties)
The properties.
properties
- The properties.public SavingsPlanOffering withProperties(SavingsPlanOfferingProperty... 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 SavingsPlanOffering withProperties(Collection<SavingsPlanOfferingProperty> properties)
The properties.
properties
- The properties.public String toString()
toString
in class Object
Object.toString()
public SavingsPlanOffering clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.