public class ReservedInstancesOffering
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a Reserved Instance offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone in which the Reserved Instance can be used.
|
private java.lang.String |
currencyCode
The currency of the Reserved Instance offering you are purchasing.
|
private java.lang.Long |
duration
The duration of the Reserved Instance, in seconds.
|
private java.lang.Float |
fixedPrice
The purchase price of the Reserved Instance.
|
private java.lang.String |
instanceTenancy
The tenancy of the instance.
|
private java.lang.String |
instanceType
The instance type on which the Reserved Instance can be used.
|
private java.lang.Boolean |
marketplace
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
private java.lang.String |
offeringType
The Reserved Instance offering type.
|
private SdkInternalList<PricingDetail> |
pricingDetails
The pricing details of the Reserved Instance offering.
|
private java.lang.String |
productDescription
The Reserved Instance product platform description.
|
private SdkInternalList<RecurringCharge> |
recurringCharges
The recurring charge tag assigned to the resource.
|
private java.lang.String |
reservedInstancesOfferingId
The ID of the Reserved Instance offering.
|
private java.lang.Float |
usagePrice
The usage price of the Reserved Instance, per hour.
|
Constructor and Description |
---|
ReservedInstancesOffering() |
Modifier and Type | Method and Description |
---|---|
ReservedInstancesOffering |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
|
java.lang.String |
getCurrencyCode()
The currency of the Reserved Instance offering you are purchasing.
|
java.lang.Long |
getDuration()
The duration of the Reserved Instance, in seconds.
|
java.lang.Float |
getFixedPrice()
The purchase price of the Reserved Instance.
|
java.lang.String |
getInstanceTenancy()
The tenancy of the instance.
|
java.lang.String |
getInstanceType()
The instance type on which the Reserved Instance can be used.
|
java.lang.Boolean |
getMarketplace()
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
java.lang.String |
getOfferingType()
The Reserved Instance offering type.
|
java.util.List<PricingDetail> |
getPricingDetails()
The pricing details of the Reserved Instance offering.
|
java.lang.String |
getProductDescription()
The Reserved Instance product platform description.
|
java.util.List<RecurringCharge> |
getRecurringCharges()
The recurring charge tag assigned to the resource.
|
java.lang.String |
getReservedInstancesOfferingId()
The ID of the Reserved Instance offering.
|
java.lang.Float |
getUsagePrice()
The usage price of the Reserved Instance, per hour.
|
int |
hashCode() |
java.lang.Boolean |
isMarketplace()
Indicates whether the offering is available through the Reserved Instance
Marketplace (resale) or AWS.
|
void |
setAvailabilityZone(java.lang.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(java.lang.String currencyCode)
The currency of the Reserved Instance offering you are purchasing.
|
void |
setDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
|
void |
setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
|
void |
setInstanceTenancy(java.lang.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(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setMarketplace(java.lang.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(java.lang.String offeringType)
The Reserved Instance offering type.
|
void |
setPricingDetails(java.util.Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
|
void |
setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
|
void |
setProductDescription(java.lang.String productDescription)
The Reserved Instance product platform description.
|
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
|
void |
setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
|
void |
setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedInstancesOffering |
withAvailabilityZone(java.lang.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(java.lang.String currencyCode)
The currency of the Reserved Instance offering you are purchasing.
|
ReservedInstancesOffering |
withDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
|
ReservedInstancesOffering |
withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
|
ReservedInstancesOffering |
withInstanceTenancy(java.lang.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(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.
|
ReservedInstancesOffering |
withMarketplace(java.lang.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(java.lang.String offeringType)
The Reserved Instance offering type.
|
ReservedInstancesOffering |
withPricingDetails(java.util.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(java.lang.String productDescription)
The Reserved Instance product platform description.
|
ReservedInstancesOffering |
withRecurringCharges(java.util.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(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
|
ReservedInstancesOffering |
withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
private java.lang.String reservedInstancesOfferingId
The ID of the Reserved Instance offering.
private java.lang.String instanceType
The instance type on which the Reserved Instance can be used.
private java.lang.String availabilityZone
The Availability Zone in which the Reserved Instance can be used.
private java.lang.Long duration
The duration of the Reserved Instance, in seconds.
private java.lang.Float usagePrice
The usage price of the Reserved Instance, per hour.
private java.lang.Float fixedPrice
The purchase price of the Reserved Instance.
private java.lang.String productDescription
The Reserved Instance product platform description.
private java.lang.String instanceTenancy
The tenancy of the instance.
private java.lang.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
.
private java.lang.String offeringType
The Reserved Instance offering type.
private SdkInternalList<RecurringCharge> recurringCharges
The recurring charge tag assigned to the resource.
private java.lang.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
.
private SdkInternalList<PricingDetail> pricingDetails
The pricing details of the Reserved Instance offering.
public void setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.public java.lang.String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering.
public ReservedInstancesOffering withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.public void setInstanceType(java.lang.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.InstanceType
public java.lang.String getInstanceType()
The instance type on which the Reserved Instance can be used.
InstanceType
public ReservedInstancesOffering withInstanceType(java.lang.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.InstanceType
public 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.InstanceType
public 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.InstanceType
public void setAvailabilityZone(java.lang.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 java.lang.String getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
public ReservedInstancesOffering withAvailabilityZone(java.lang.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(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
duration
- The duration of the Reserved Instance, in seconds.public java.lang.Long getDuration()
The duration of the Reserved Instance, in seconds.
public ReservedInstancesOffering withDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.
duration
- The duration of the Reserved Instance, in seconds.public void setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice
- The usage price of the Reserved Instance, per hour.public java.lang.Float getUsagePrice()
The usage price of the Reserved Instance, per hour.
public ReservedInstancesOffering withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.
usagePrice
- The usage price of the Reserved Instance, per hour.public void setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice
- The purchase price of the Reserved Instance.public java.lang.Float getFixedPrice()
The purchase price of the Reserved Instance.
public ReservedInstancesOffering withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.
fixedPrice
- The purchase price of the Reserved Instance.public void setProductDescription(java.lang.String productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public java.lang.String getProductDescription()
The Reserved Instance product platform description.
RIProductDescription
public ReservedInstancesOffering withProductDescription(java.lang.String productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public ReservedInstancesOffering withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public void setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public java.lang.String getInstanceTenancy()
The tenancy of the instance.
Tenancy
public ReservedInstancesOffering withInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public ReservedInstancesOffering withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public void setCurrencyCode(java.lang.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
.CurrencyCodeValues
public java.lang.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
.CurrencyCodeValues
public ReservedInstancesOffering withCurrencyCode(java.lang.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
.CurrencyCodeValues
public 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
.CurrencyCodeValues
public 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
.CurrencyCodeValues
public void setOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public java.lang.String getOfferingType()
The Reserved Instance offering type.
OfferingTypeValues
public ReservedInstancesOffering withOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public void setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstancesOffering withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public java.util.List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.
public void setRecurringCharges(java.util.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(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
recurringCharges
- The recurring charge tag assigned to the resource.public void setMarketplace(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.util.List<PricingDetail> getPricingDetails()
The pricing details of the Reserved Instance offering.
public void setPricingDetails(java.util.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(java.util.Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
pricingDetails
- The pricing details of the Reserved Instance offering.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReservedInstancesOffering clone()
clone
in class java.lang.Object