public class ReservedInstancesOffering extends Object implements Serializable
Describes a Reserved Instance offering.
Constructor and Description |
---|
ReservedInstancesOffering() |
Modifier and Type | Method and Description |
---|---|
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 reserved 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 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 reserved instance.
|
void |
setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the reserved 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 description.
|
void |
setProductDescription(String productDescription)
The Reserved Instance 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 reserved instance.
|
ReservedInstancesOffering |
withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the reserved 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 description.
|
ReservedInstancesOffering |
withProductDescription(String productDescription)
The Reserved Instance 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 String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.public ReservedInstancesOffering withReservedInstancesOfferingId(String reservedInstancesOfferingId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public ReservedInstancesOffering withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public ReservedInstancesOffering withInstanceType(InstanceType instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public ReservedInstancesOffering withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public Long getDuration()
public void setDuration(Long duration)
duration
- The duration of the Reserved Instance, in seconds.public ReservedInstancesOffering withDuration(Long duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The duration of the Reserved Instance, in seconds.public Float getUsagePrice()
public void setUsagePrice(Float usagePrice)
usagePrice
- The usage price of the Reserved Instance, per hour.public ReservedInstancesOffering withUsagePrice(Float usagePrice)
Returns a reference to this object so that method calls can be chained together.
usagePrice
- The usage price of the Reserved Instance, per hour.public Float getFixedPrice()
public void setFixedPrice(Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instance.public ReservedInstancesOffering withFixedPrice(Float fixedPrice)
Returns a reference to this object so that method calls can be chained together.
fixedPrice
- The purchase price of the Reserved Instance.public String getProductDescription()
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
RIProductDescription
public void setProductDescription(String productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance description.RIProductDescription
public ReservedInstancesOffering withProductDescription(String productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance description.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance description.RIProductDescription
public ReservedInstancesOffering withProductDescription(RIProductDescription productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance description.RIProductDescription
public String getInstanceTenancy()
Constraints:
Allowed Values: default, dedicated
Tenancy
public void setInstanceTenancy(String instanceTenancy)
Constraints:
Allowed Values: default, dedicated
instanceTenancy
- The tenancy of the reserved instance.Tenancy
public ReservedInstancesOffering withInstanceTenancy(String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
instanceTenancy
- The tenancy of the reserved instance.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
Constraints:
Allowed Values: default, dedicated
instanceTenancy
- The tenancy of the reserved instance.Tenancy
public ReservedInstancesOffering withInstanceTenancy(Tenancy instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
instanceTenancy
- The tenancy of the reserved instance.Tenancy
public String getCurrencyCode()
USD
.
Constraints:
Allowed Values: USD
USD
.CurrencyCodeValues
public void setCurrencyCode(String currencyCode)
USD
.
Constraints:
Allowed Values: 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(String currencyCode)
USD
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: 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)
USD
.
Constraints:
Allowed Values: 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)
USD
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: 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 getOfferingType()
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
OfferingTypeValues
public void setOfferingType(String offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstancesOffering withOfferingType(String offeringType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public void setOfferingType(OfferingTypeValues offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstancesOffering withOfferingType(OfferingTypeValues offeringType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public List<RecurringCharge> getRecurringCharges()
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
recurringCharges
- The recurring charge tag assigned to the resource.public ReservedInstancesOffering withRecurringCharges(RecurringCharge... recurringCharges)
Returns a reference to this object so that method calls can be chained together.
recurringCharges
- The recurring charge tag assigned to the resource.public ReservedInstancesOffering withRecurringCharges(Collection<RecurringCharge> recurringCharges)
Returns a reference to this object so that method calls can be chained together.
recurringCharges
- The recurring charge tag assigned to the resource.public Boolean isMarketplace()
true
.true
.public void setMarketplace(Boolean marketplace)
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 ReservedInstancesOffering withMarketplace(Boolean marketplace)
true
.
Returns a reference to this object so that method calls can be chained together.
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()
true
.true
.public List<PricingDetail> getPricingDetails()
public void setPricingDetails(Collection<PricingDetail> pricingDetails)
pricingDetails
- The pricing details of the Reserved Instance offering.public ReservedInstancesOffering withPricingDetails(PricingDetail... pricingDetails)
Returns a reference to this object so that method calls can be chained together.
pricingDetails
- The pricing details of the Reserved Instance offering.public ReservedInstancesOffering withPricingDetails(Collection<PricingDetail> pricingDetails)
Returns a reference to this object so that method calls can be chained together.
pricingDetails
- The pricing details of the Reserved Instance offering.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.