@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 |
getOfferingClass()
If
convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. |
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.
|
String |
getScope()
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
|
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 |
setOfferingClass(OfferingClassType offeringClass)
If
convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. |
void |
setOfferingClass(String offeringClass)
If
convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. |
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 |
setScope(Scope scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
|
void |
setScope(String scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
|
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 |
withOfferingClass(OfferingClassType offeringClass)
If
convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. |
ReservedInstancesOffering |
withOfferingClass(String offeringClass)
If
convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. |
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 |
withScope(Scope scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
|
ReservedInstancesOffering |
withScope(String scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
|
ReservedInstancesOffering |
withUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
|
public 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 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 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.InstanceType
public String getInstanceType()
The instance type on which the Reserved Instance can be used.
InstanceType
public 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.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 setProductDescription(String productDescription)
The Reserved Instance product platform description.
productDescription
- The Reserved Instance product platform description.RIProductDescription
public String getProductDescription()
The Reserved Instance product platform description.
RIProductDescription
public ReservedInstancesOffering withProductDescription(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 setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering. This is the offering ID used in GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering. This is the offering ID used in
GetReservedInstancesExchangeQuote to confirm that an exchange can be made.public String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering. This is the offering ID used in GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
public ReservedInstancesOffering withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering. This is the offering ID used in GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering. This is the offering ID used in
GetReservedInstancesExchangeQuote to confirm that an exchange can be made.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 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
.CurrencyCodeValues
public 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(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 setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
instanceTenancy
- The tenancy of the instance.Tenancy
public String getInstanceTenancy()
The tenancy of the instance.
Tenancy
public ReservedInstancesOffering withInstanceTenancy(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 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 void setOfferingClass(String offeringClass)
If convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. If standard
, it is not possible to perform an exchange.
offeringClass
- If convertible
it can be exchanged for Reserved Instances of the same or higher monetary
value, with different configurations. If standard
, it is not possible to perform an exchange.OfferingClassType
public String getOfferingClass()
If convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. If standard
, it is not possible to perform an exchange.
convertible
it can be exchanged for Reserved Instances of the same or higher monetary
value, with different configurations. If standard
, it is not possible to perform an
exchange.OfferingClassType
public ReservedInstancesOffering withOfferingClass(String offeringClass)
If convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. If standard
, it is not possible to perform an exchange.
offeringClass
- If convertible
it can be exchanged for Reserved Instances of the same or higher monetary
value, with different configurations. If standard
, it is not possible to perform an exchange.OfferingClassType
public void setOfferingClass(OfferingClassType offeringClass)
If convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. If standard
, it is not possible to perform an exchange.
offeringClass
- If convertible
it can be exchanged for Reserved Instances of the same or higher monetary
value, with different configurations. If standard
, it is not possible to perform an exchange.OfferingClassType
public ReservedInstancesOffering withOfferingClass(OfferingClassType offeringClass)
If convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with
different configurations. If standard
, it is not possible to perform an exchange.
offeringClass
- If convertible
it can be exchanged for Reserved Instances of the same or higher monetary
value, with different configurations. If standard
, it is not possible to perform an exchange.OfferingClassType
public void setOfferingType(String offeringType)
The Reserved Instance offering type.
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public String getOfferingType()
The Reserved Instance offering type.
OfferingTypeValues
public ReservedInstancesOffering withOfferingType(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 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 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 setScope(String scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
scope
- Whether the Reserved Instance is applied to instances in a region or an Availability Zone.Scope
public String getScope()
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
Scope
public ReservedInstancesOffering withScope(String scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
scope
- Whether the Reserved Instance is applied to instances in a region or an Availability Zone.Scope
public void setScope(Scope scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
scope
- Whether the Reserved Instance is applied to instances in a region or an Availability Zone.Scope
public ReservedInstancesOffering withScope(Scope scope)
Whether the Reserved Instance is applied to instances in a region or an Availability Zone.
scope
- Whether the Reserved Instance is applied to instances in a region or an Availability Zone.Scope
public String toString()
toString
in class Object
Object.toString()
public ReservedInstancesOffering clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.