@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SavingsPlan extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Savings Plan.
Constructor and Description |
---|
SavingsPlan() |
Modifier and Type | Method and Description |
---|---|
SavingsPlan |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
SavingsPlan |
clearTagsEntries()
Removes all the entries added into Tags.
|
SavingsPlan |
clone() |
boolean |
equals(Object obj) |
String |
getCommitment()
The hourly commitment amount in the specified currency.
|
String |
getCurrency()
The currency.
|
String |
getDescription()
The description.
|
String |
getEc2InstanceFamily()
The EC2 instance family.
|
String |
getEnd()
The end time.
|
String |
getOfferingId()
The ID of the offering.
|
String |
getPaymentOption()
The payment option.
|
List<String> |
getProductTypes()
The product types.
|
String |
getRecurringPaymentAmount()
The recurring payment amount.
|
String |
getRegion()
The Amazon Web Services Region.
|
String |
getReturnableUntil()
The time until when a return for the Savings Plan can be requested.
|
String |
getSavingsPlanArn()
The Amazon Resource Name (ARN) of the Savings Plan.
|
String |
getSavingsPlanId()
The ID of the Savings Plan.
|
String |
getSavingsPlanType()
The plan type.
|
String |
getStart()
The start time.
|
String |
getState()
The current state.
|
Map<String,String> |
getTags()
One or more tags.
|
Long |
getTermDurationInSeconds()
The duration of the term, in seconds.
|
String |
getUpfrontPaymentAmount()
The up-front payment amount.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommitment(String commitment)
The hourly commitment amount in the specified currency.
|
void |
setCurrency(String currency)
The currency.
|
void |
setDescription(String description)
The description.
|
void |
setEc2InstanceFamily(String ec2InstanceFamily)
The EC2 instance family.
|
void |
setEnd(String end)
The end time.
|
void |
setOfferingId(String offeringId)
The ID of the offering.
|
void |
setPaymentOption(String paymentOption)
The payment option.
|
void |
setProductTypes(Collection<String> productTypes)
The product types.
|
void |
setRecurringPaymentAmount(String recurringPaymentAmount)
The recurring payment amount.
|
void |
setRegion(String region)
The Amazon Web Services Region.
|
void |
setReturnableUntil(String returnableUntil)
The time until when a return for the Savings Plan can be requested.
|
void |
setSavingsPlanArn(String savingsPlanArn)
The Amazon Resource Name (ARN) of the Savings Plan.
|
void |
setSavingsPlanId(String savingsPlanId)
The ID of the Savings Plan.
|
void |
setSavingsPlanType(String savingsPlanType)
The plan type.
|
void |
setStart(String start)
The start time.
|
void |
setState(String state)
The current state.
|
void |
setTags(Map<String,String> tags)
One or more tags.
|
void |
setTermDurationInSeconds(Long termDurationInSeconds)
The duration of the term, in seconds.
|
void |
setUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
|
String |
toString()
Returns a string representation of this object.
|
SavingsPlan |
withCommitment(String commitment)
The hourly commitment amount in the specified currency.
|
SavingsPlan |
withCurrency(CurrencyCode currency)
The currency.
|
SavingsPlan |
withCurrency(String currency)
The currency.
|
SavingsPlan |
withDescription(String description)
The description.
|
SavingsPlan |
withEc2InstanceFamily(String ec2InstanceFamily)
The EC2 instance family.
|
SavingsPlan |
withEnd(String end)
The end time.
|
SavingsPlan |
withOfferingId(String offeringId)
The ID of the offering.
|
SavingsPlan |
withPaymentOption(SavingsPlanPaymentOption paymentOption)
The payment option.
|
SavingsPlan |
withPaymentOption(String paymentOption)
The payment option.
|
SavingsPlan |
withProductTypes(Collection<String> productTypes)
The product types.
|
SavingsPlan |
withProductTypes(SavingsPlanProductType... productTypes)
The product types.
|
SavingsPlan |
withProductTypes(String... productTypes)
The product types.
|
SavingsPlan |
withRecurringPaymentAmount(String recurringPaymentAmount)
The recurring payment amount.
|
SavingsPlan |
withRegion(String region)
The Amazon Web Services Region.
|
SavingsPlan |
withReturnableUntil(String returnableUntil)
The time until when a return for the Savings Plan can be requested.
|
SavingsPlan |
withSavingsPlanArn(String savingsPlanArn)
The Amazon Resource Name (ARN) of the Savings Plan.
|
SavingsPlan |
withSavingsPlanId(String savingsPlanId)
The ID of the Savings Plan.
|
SavingsPlan |
withSavingsPlanType(SavingsPlanType savingsPlanType)
The plan type.
|
SavingsPlan |
withSavingsPlanType(String savingsPlanType)
The plan type.
|
SavingsPlan |
withStart(String start)
The start time.
|
SavingsPlan |
withState(SavingsPlanState state)
The current state.
|
SavingsPlan |
withState(String state)
The current state.
|
SavingsPlan |
withTags(Map<String,String> tags)
One or more tags.
|
SavingsPlan |
withTermDurationInSeconds(Long termDurationInSeconds)
The duration of the term, in seconds.
|
SavingsPlan |
withUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
|
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 SavingsPlan withOfferingId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public void setSavingsPlanId(String savingsPlanId)
The ID of the Savings Plan.
savingsPlanId
- The ID of the Savings Plan.public String getSavingsPlanId()
The ID of the Savings Plan.
public SavingsPlan withSavingsPlanId(String savingsPlanId)
The ID of the Savings Plan.
savingsPlanId
- The ID of the Savings Plan.public void setSavingsPlanArn(String savingsPlanArn)
The Amazon Resource Name (ARN) of the Savings Plan.
savingsPlanArn
- The Amazon Resource Name (ARN) of the Savings Plan.public String getSavingsPlanArn()
The Amazon Resource Name (ARN) of the Savings Plan.
public SavingsPlan withSavingsPlanArn(String savingsPlanArn)
The Amazon Resource Name (ARN) of the Savings Plan.
savingsPlanArn
- The Amazon Resource Name (ARN) of the Savings Plan.public void setDescription(String description)
The description.
description
- The description.public String getDescription()
The description.
public SavingsPlan withDescription(String description)
The description.
description
- The description.public void setStart(String start)
The start time.
start
- The start time.public String getStart()
The start time.
public SavingsPlan withStart(String start)
The start time.
start
- The start time.public void setEnd(String end)
The end time.
end
- The end time.public String getEnd()
The end time.
public SavingsPlan withEnd(String end)
The end time.
end
- The end time.public void setState(String state)
The current state.
state
- The current state.SavingsPlanState
public String getState()
The current state.
SavingsPlanState
public SavingsPlan withState(String state)
The current state.
state
- The current state.SavingsPlanState
public SavingsPlan withState(SavingsPlanState state)
The current state.
state
- The current state.SavingsPlanState
public void setRegion(String region)
The Amazon Web Services Region.
region
- The Amazon Web Services Region.public String getRegion()
The Amazon Web Services Region.
public SavingsPlan withRegion(String region)
The Amazon Web Services Region.
region
- The Amazon Web Services Region.public void setEc2InstanceFamily(String ec2InstanceFamily)
The EC2 instance family.
ec2InstanceFamily
- The EC2 instance family.public String getEc2InstanceFamily()
The EC2 instance family.
public SavingsPlan withEc2InstanceFamily(String ec2InstanceFamily)
The EC2 instance family.
ec2InstanceFamily
- The EC2 instance family.public void setSavingsPlanType(String savingsPlanType)
The plan type.
savingsPlanType
- The plan type.SavingsPlanType
public String getSavingsPlanType()
The plan type.
SavingsPlanType
public SavingsPlan withSavingsPlanType(String savingsPlanType)
The plan type.
savingsPlanType
- The plan type.SavingsPlanType
public SavingsPlan withSavingsPlanType(SavingsPlanType savingsPlanType)
The plan type.
savingsPlanType
- The plan type.SavingsPlanType
public void setPaymentOption(String paymentOption)
The payment option.
paymentOption
- The payment option.SavingsPlanPaymentOption
public String getPaymentOption()
The payment option.
SavingsPlanPaymentOption
public SavingsPlan withPaymentOption(String paymentOption)
The payment option.
paymentOption
- The payment option.SavingsPlanPaymentOption
public SavingsPlan withPaymentOption(SavingsPlanPaymentOption paymentOption)
The payment option.
paymentOption
- The payment option.SavingsPlanPaymentOption
public List<String> getProductTypes()
The product types.
SavingsPlanProductType
public void setProductTypes(Collection<String> productTypes)
The product types.
productTypes
- The product types.SavingsPlanProductType
public SavingsPlan withProductTypes(String... productTypes)
The product types.
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 types.SavingsPlanProductType
public SavingsPlan withProductTypes(Collection<String> productTypes)
The product types.
productTypes
- The product types.SavingsPlanProductType
public SavingsPlan withProductTypes(SavingsPlanProductType... productTypes)
The product types.
productTypes
- The product types.SavingsPlanProductType
public void setCurrency(String currency)
The currency.
currency
- The currency.CurrencyCode
public String getCurrency()
The currency.
CurrencyCode
public SavingsPlan withCurrency(String currency)
The currency.
currency
- The currency.CurrencyCode
public SavingsPlan withCurrency(CurrencyCode currency)
The currency.
currency
- The currency.CurrencyCode
public void setCommitment(String commitment)
The hourly commitment amount in the specified currency.
commitment
- The hourly commitment amount in the specified currency.public String getCommitment()
The hourly commitment amount in the specified currency.
public SavingsPlan withCommitment(String commitment)
The hourly commitment amount in the specified currency.
commitment
- The hourly commitment amount in the specified currency.public void setUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
upfrontPaymentAmount
- The up-front payment amount.public String getUpfrontPaymentAmount()
The up-front payment amount.
public SavingsPlan withUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
upfrontPaymentAmount
- The up-front payment amount.public void setRecurringPaymentAmount(String recurringPaymentAmount)
The recurring payment amount.
recurringPaymentAmount
- The recurring payment amount.public String getRecurringPaymentAmount()
The recurring payment amount.
public SavingsPlan withRecurringPaymentAmount(String recurringPaymentAmount)
The recurring payment amount.
recurringPaymentAmount
- The recurring payment amount.public void setTermDurationInSeconds(Long termDurationInSeconds)
The duration of the term, in seconds.
termDurationInSeconds
- The duration of the term, in seconds.public Long getTermDurationInSeconds()
The duration of the term, in seconds.
public SavingsPlan withTermDurationInSeconds(Long termDurationInSeconds)
The duration of the term, in seconds.
termDurationInSeconds
- The duration of the term, in seconds.public void setTags(Map<String,String> tags)
One or more tags.
tags
- One or more tags.public SavingsPlan withTags(Map<String,String> tags)
One or more tags.
tags
- One or more tags.public SavingsPlan addTagsEntry(String key, String value)
public SavingsPlan clearTagsEntries()
public void setReturnableUntil(String returnableUntil)
The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
returnableUntil
- The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable,
the field reflects the Savings Plan start time.public String getReturnableUntil()
The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
public SavingsPlan withReturnableUntil(String returnableUntil)
The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
returnableUntil
- The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable,
the field reflects the Savings Plan start time.public String toString()
toString
in class Object
Object.toString()
public SavingsPlan clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.