public class ReservedInstancesOffering
extends java.lang.Object
implements java.io.Serializable
Describes a Reserved Instance offering.
Constructor and Description |
---|
ReservedInstancesOffering() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
reservedInstancesOfferingId
- The ID of the Reserved Instance offering.public ReservedInstancesOffering withReservedInstancesOfferingId(java.lang.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 java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
InstanceType
public void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public ReservedInstancesOffering withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.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, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public ReservedInstancesOffering withAvailabilityZone(java.lang.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 java.lang.Long getDuration()
public void setDuration(java.lang.Long duration)
duration
- The duration of the Reserved Instance, in seconds.public ReservedInstancesOffering withDuration(java.lang.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 java.lang.Float getUsagePrice()
public void setUsagePrice(java.lang.Float usagePrice)
usagePrice
- The usage price of the Reserved Instance, per hour.public ReservedInstancesOffering withUsagePrice(java.lang.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 java.lang.Float getFixedPrice()
public void setFixedPrice(java.lang.Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instance.public ReservedInstancesOffering withFixedPrice(java.lang.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 java.lang.String getProductDescription()
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
RIProductDescription
public void setProductDescription(java.lang.String productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product platform description.RIProductDescription
public ReservedInstancesOffering withProductDescription(java.lang.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 product platform description.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product platform 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 product platform description.RIProductDescription
public java.lang.String getInstanceTenancy()
Constraints:
Allowed Values: default, dedicated, host
Tenancy
public void setInstanceTenancy(java.lang.String instanceTenancy)
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the instance.Tenancy
public ReservedInstancesOffering withInstanceTenancy(java.lang.String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the instance.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
Constraints:
Allowed Values: default, dedicated, host
instanceTenancy
- The tenancy of the 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, host
instanceTenancy
- The tenancy of the instance.Tenancy
public java.lang.String getCurrencyCode()
USD
.
Constraints:
Allowed Values: USD
USD
.CurrencyCodeValues
public void setCurrencyCode(java.lang.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(java.lang.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 java.lang.String getOfferingType()
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
OfferingTypeValues
public void setOfferingType(java.lang.String offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public ReservedInstancesOffering withOfferingType(java.lang.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, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public void setOfferingType(OfferingTypeValues offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
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, No Upfront, Partial Upfront, All Upfront
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public java.util.List<RecurringCharge> getRecurringCharges()
public void setRecurringCharges(java.util.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(java.util.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 java.lang.Boolean isMarketplace()
true
.true
.public void setMarketplace(java.lang.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(java.lang.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 java.lang.Boolean getMarketplace()
true
.true
.public java.util.List<PricingDetail> getPricingDetails()
public void setPricingDetails(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.