Class ReservedInstancesOffering
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ReservedInstancesOffering
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReservedInstancesOffering extends Object implements Serializable, Cloneable
Describes a Reserved Instance offering.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedInstancesOffering()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Tenancy instanceTenancy)
The tenancy of the instance.void
setInstanceTenancy(String 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(Tenancy instanceTenancy)
The tenancy of the instance.ReservedInstancesOffering
withInstanceTenancy(String 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(PricingDetail... pricingDetails)
The pricing details of the Reserved Instance offering.ReservedInstancesOffering
withPricingDetails(Collection<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(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstancesOffering
withRecurringCharges(Collection<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.
-
-
-
Method Detail
-
setReservedInstancesOfferingId
public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
- Parameters:
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.
-
getReservedInstancesOfferingId
public String getReservedInstancesOfferingId()
The ID of the Reserved Instance offering.
- Returns:
- The ID of the Reserved Instance offering.
-
withReservedInstancesOfferingId
public ReservedInstancesOffering withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.
- Parameters:
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
- Parameters:
instanceType
- The instance type on which the Reserved Instance can be used.- See Also:
InstanceType
-
getInstanceType
public String getInstanceType()
The instance type on which the Reserved Instance can be used.
- Returns:
- The instance type on which the Reserved Instance can be used.
- See Also:
InstanceType
-
withInstanceType
public ReservedInstancesOffering withInstanceType(String instanceType)
The instance type on which the Reserved Instance can be used.
- Parameters:
instanceType
- The instance type on which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
- Parameters:
instanceType
- The instance type on which the Reserved Instance can be used.- See Also:
InstanceType
-
withInstanceType
public ReservedInstancesOffering withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.
- Parameters:
instanceType
- The instance type on which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
- Parameters:
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
- Returns:
- The Availability Zone in which the Reserved Instance can be used.
-
withAvailabilityZone
public ReservedInstancesOffering withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
- Parameters:
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDuration
public void setDuration(Long duration)
The duration of the Reserved Instance, in seconds.
- Parameters:
duration
- The duration of the Reserved Instance, in seconds.
-
getDuration
public Long getDuration()
The duration of the Reserved Instance, in seconds.
- Returns:
- The duration of the Reserved Instance, in seconds.
-
withDuration
public ReservedInstancesOffering withDuration(Long duration)
The duration of the Reserved Instance, in seconds.
- Parameters:
duration
- The duration of the Reserved Instance, in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsagePrice
public void setUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
- Parameters:
usagePrice
- The usage price of the Reserved Instance, per hour.
-
getUsagePrice
public Float getUsagePrice()
The usage price of the Reserved Instance, per hour.
- Returns:
- The usage price of the Reserved Instance, per hour.
-
withUsagePrice
public ReservedInstancesOffering withUsagePrice(Float usagePrice)
The usage price of the Reserved Instance, per hour.
- Parameters:
usagePrice
- The usage price of the Reserved Instance, per hour.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFixedPrice
public void setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
- Parameters:
fixedPrice
- The purchase price of the Reserved Instance.
-
getFixedPrice
public Float getFixedPrice()
The purchase price of the Reserved Instance.
- Returns:
- The purchase price of the Reserved Instance.
-
withFixedPrice
public ReservedInstancesOffering withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.
- Parameters:
fixedPrice
- The purchase price of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProductDescription
public void setProductDescription(String productDescription)
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- See Also:
RIProductDescription
-
getProductDescription
public String getProductDescription()
The Reserved Instance product platform description.
- Returns:
- The Reserved Instance product platform description.
- See Also:
RIProductDescription
-
withProductDescription
public ReservedInstancesOffering withProductDescription(String productDescription)
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RIProductDescription
-
setProductDescription
public void setProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- See Also:
RIProductDescription
-
withProductDescription
public ReservedInstancesOffering withProductDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RIProductDescription
-
setInstanceTenancy
public void setInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- See Also:
Tenancy
-
getInstanceTenancy
public String getInstanceTenancy()
The tenancy of the instance.
- Returns:
- The tenancy of the instance.
- See Also:
Tenancy
-
withInstanceTenancy
public ReservedInstancesOffering withInstanceTenancy(String instanceTenancy)
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
-
setInstanceTenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- See Also:
Tenancy
-
withInstanceTenancy
public ReservedInstancesOffering withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
-
setCurrencyCode
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
.- Parameters:
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 isUSD
.- See Also:
CurrencyCodeValues
-
getCurrencyCode
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
.- Returns:
- 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
. - See Also:
CurrencyCodeValues
-
withCurrencyCode
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
.- Parameters:
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 isUSD
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCodeValues
-
setCurrencyCode
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
.- Parameters:
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 isUSD
.- See Also:
CurrencyCodeValues
-
withCurrencyCode
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
.- Parameters:
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 isUSD
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCodeValues
-
setOfferingType
public void setOfferingType(String offeringType)
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- See Also:
OfferingTypeValues
-
getOfferingType
public String getOfferingType()
The Reserved Instance offering type.
- Returns:
- The Reserved Instance offering type.
- See Also:
OfferingTypeValues
-
withOfferingType
public ReservedInstancesOffering withOfferingType(String offeringType)
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OfferingTypeValues
-
setOfferingType
public void setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- See Also:
OfferingTypeValues
-
withOfferingType
public ReservedInstancesOffering withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OfferingTypeValues
-
getRecurringCharges
public List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.
- Returns:
- The recurring charge tag assigned to the resource.
-
setRecurringCharges
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
- Parameters:
recurringCharges
- The recurring charge tag assigned to the resource.
-
withRecurringCharges
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)
orwithRecurringCharges(java.util.Collection)
if you want to override the existing values.- Parameters:
recurringCharges
- The recurring charge tag assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecurringCharges
public ReservedInstancesOffering withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.
- Parameters:
recurringCharges
- The recurring charge tag assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMarketplace
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
.- Parameters:
marketplace
- Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this istrue
.
-
getMarketplace
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
.- Returns:
- 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
.
-
withMarketplace
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
.- Parameters:
marketplace
- Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isMarketplace
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
.- Returns:
- 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
.
-
getPricingDetails
public List<PricingDetail> getPricingDetails()
The pricing details of the Reserved Instance offering.
- Returns:
- The pricing details of the Reserved Instance offering.
-
setPricingDetails
public void setPricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
- Parameters:
pricingDetails
- The pricing details of the Reserved Instance offering.
-
withPricingDetails
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)
orwithPricingDetails(java.util.Collection)
if you want to override the existing values.- Parameters:
pricingDetails
- The pricing details of the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPricingDetails
public ReservedInstancesOffering withPricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
- Parameters:
pricingDetails
- The pricing details of the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedInstancesOffering clone()
-
-