public class ReservedInstancesOffering extends Object implements Serializable, Cloneable
Describes a Reserved Instance offering.
| Constructor and Description |
|---|
ReservedInstancesOffering() |
| Modifier and Type | Method and Description |
|---|---|
ReservedInstancesOffering |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
|
String |
getCurrencyCode()
The currency of the Reserved Instance offering you are purchasing.
|
Long |
getDuration()
The duration of the Reserved Instance, in seconds.
|
Float |
getFixedPrice()
The purchase price of the Reserved Instance.
|
String |
getInstanceTenancy()
The tenancy of the instance.
|
String |
getInstanceType()
The instance type on which the Reserved Instance can be used.
|
Boolean |
getMarketplace()
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
String |
getOfferingType()
The Reserved Instance offering type.
|
List<PricingDetail> |
getPricingDetails()
The pricing details of the Reserved Instance offering.
|
String |
getProductDescription()
The Reserved Instance product platform description.
|
List<RecurringCharge> |
getRecurringCharges()
The recurring charge tag assigned to the resource.
|
String |
getReservedInstancesOfferingId()
The ID of the Reserved Instance offering.
|
Float |
getUsagePrice()
The usage price of the Reserved Instance, per hour.
|
int |
hashCode() |
Boolean |
isMarketplace()
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
|
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance offering you are purchasing.
|
void |
setCurrencyCode(String currencyCode)
The currency of the Reserved Instance offering you are purchasing.
|
void |
setDuration(Long duration)
The duration of the Reserved Instance, in seconds.
|
void |
setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
|
void |
setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
|
void |
setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
|
void |
setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setMarketplace(Boolean marketplace)
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
void |
setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
void |
setOfferingType(String offeringType)
The Reserved Instance offering type.
|
void |
setPricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
|
void |
setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
void |
setProductDescription(String productDescription)
The Reserved Instance product platform description.
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
|
void |
setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
|
void |
setUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedInstancesOffering |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
|
ReservedInstancesOffering |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance offering you are purchasing.
|
ReservedInstancesOffering |
withCurrencyCode(String currencyCode)
The currency of the Reserved Instance offering you are purchasing.
|
ReservedInstancesOffering |
withDuration(Long duration)
The duration of the Reserved Instance, in seconds.
|
ReservedInstancesOffering |
withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
|
ReservedInstancesOffering |
withInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
|
ReservedInstancesOffering |
withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
|
ReservedInstancesOffering |
withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
|
ReservedInstancesOffering |
withInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
|
ReservedInstancesOffering |
withMarketplace(Boolean marketplace)
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
ReservedInstancesOffering |
withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
ReservedInstancesOffering |
withOfferingType(String offeringType)
The Reserved Instance offering type.
|
ReservedInstancesOffering |
withPricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
|
ReservedInstancesOffering |
withPricingDetails(PricingDetail... pricingDetails)
The pricing details of the Reserved Instance offering.
|
ReservedInstancesOffering |
withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
ReservedInstancesOffering |
withProductDescription(String productDescription)
The Reserved Instance product platform description.
|
ReservedInstancesOffering |
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
|
ReservedInstancesOffering |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.
|
ReservedInstancesOffering |
withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
|
ReservedInstancesOffering |
withUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
reservedInstancesOfferingId - The ID of the Reserved Instance offering.public String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering.
public ReservedInstancesOffering withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
reservedInstancesOfferingId - The ID of the Reserved Instance offering.public void setInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic String getInstanceType()
The instance type on which the Reserved Instance can be used.
InstanceTypepublic ReservedInstancesOffering withInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic void setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic ReservedInstancesOffering withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
instanceType - The instance type on which the Reserved Instance can be used.InstanceTypepublic void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
availabilityZone - The Availability Zone in which the Reserved Instance can be used.public String getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
public ReservedInstancesOffering withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
availabilityZone - The Availability Zone in which the Reserved Instance can be used.public void setDuration(Long duration)
The duration of the Reserved Instance, in seconds.
duration - The duration of the Reserved Instance, in seconds.public Long getDuration()
The duration of the Reserved Instance, in seconds.
public ReservedInstancesOffering withDuration(Long duration)
The duration of the Reserved Instance, in seconds.
duration - The duration of the Reserved Instance, in seconds.public void setUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice - The usage price of the Reserved Instance, per hour.public Float getUsagePrice()
The usage price of the Reserved Instance, per hour.
public ReservedInstancesOffering withUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice - The usage price of the Reserved Instance, per hour.public void setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice - The purchase price of the Reserved Instance.public Float getFixedPrice()
The purchase price of the Reserved Instance.
public ReservedInstancesOffering withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice - The purchase price of the Reserved Instance.public void setProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic String getProductDescription()
The Reserved Instance product platform description.
RIProductDescriptionpublic ReservedInstancesOffering withProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic void setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic ReservedInstancesOffering withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription - The Reserved Instance product platform description.RIProductDescriptionpublic void setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic String getInstanceTenancy()
The tenancy of the instance.
Tenancypublic ReservedInstancesOffering withInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic ReservedInstancesOffering withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy - The tenancy of the instance.Tenancypublic void setCurrencyCode(String currencyCode)
The currency of the Reserved Instance offering you are purchasing. It's
specified using ISO 4217 standard currency codes. At this time, the only
supported currency is USD.
currencyCode - The currency of the Reserved Instance offering you are purchasing.
It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic String getCurrencyCode()
The currency of the Reserved Instance offering you are purchasing. It's
specified using ISO 4217 standard currency codes. At this time, the only
supported currency is USD.
USD.CurrencyCodeValuespublic ReservedInstancesOffering withCurrencyCode(String currencyCode)
The currency of the Reserved Instance offering you are purchasing. It's
specified using ISO 4217 standard currency codes. At this time, the only
supported currency is USD.
currencyCode - The currency of the Reserved Instance offering you are purchasing.
It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance offering you are purchasing. It's
specified using ISO 4217 standard currency codes. At this time, the only
supported currency is USD.
currencyCode - The currency of the Reserved Instance offering you are purchasing.
It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic ReservedInstancesOffering withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance offering you are purchasing. It's
specified using ISO 4217 standard currency codes. At this time, the only
supported currency is USD.
currencyCode - The currency of the Reserved Instance offering you are purchasing.
It's specified using ISO 4217 standard currency codes. At this
time, the only supported currency is USD.CurrencyCodeValuespublic void setOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic String getOfferingType()
The Reserved Instance offering type.
OfferingTypeValuespublic ReservedInstancesOffering withOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic void setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic ReservedInstancesOffering withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType - The Reserved Instance offering type.OfferingTypeValuespublic List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
recurringCharges - The recurring charge tag assigned to the resource.public ReservedInstancesOffering withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.
NOTE: This method appends the values to the existing list (if
any). Use setRecurringCharges(java.util.Collection) or
withRecurringCharges(java.util.Collection) if you want to
override the existing values.
recurringCharges - The recurring charge tag assigned to the resource.public ReservedInstancesOffering withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
recurringCharges - The recurring charge tag assigned to the resource.public void setMarketplace(Boolean marketplace)
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace
offering, this is true.
marketplace - Indicates whether the offering is available through the Reserved
Instance Marketplace (resale) or AWS. If it's a Reserved Instance
Marketplace offering, this is true.public Boolean getMarketplace()
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace
offering, this is true.
true.public ReservedInstancesOffering withMarketplace(Boolean marketplace)
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace
offering, this is true.
marketplace - Indicates whether the offering is available through the Reserved
Instance Marketplace (resale) or AWS. If it's a Reserved Instance
Marketplace offering, this is true.public Boolean isMarketplace()
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace
offering, this is true.
true.public List<PricingDetail> getPricingDetails()
The pricing details of the Reserved Instance offering.
public void setPricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
pricingDetails - The pricing details of the Reserved Instance offering.public ReservedInstancesOffering withPricingDetails(PricingDetail... pricingDetails)
The pricing details of the Reserved Instance offering.
NOTE: This method appends the values to the existing list (if
any). Use setPricingDetails(java.util.Collection) or
withPricingDetails(java.util.Collection) if you want to override
the existing values.
pricingDetails - The pricing details of the Reserved Instance offering.public ReservedInstancesOffering withPricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
pricingDetails - The pricing details of the Reserved Instance offering.public String toString()
toString in class ObjectObject.toString()public ReservedInstancesOffering clone()
Copyright © 2016. All rights reserved.