Class ReservedInstances
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a Reserved Instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Availability Zone in which the Reserved Instance can be used.The currency of the Reserved Instance.The duration of the Reserved Instance, in seconds.getEnd()
The time when the Reserved Instance expires.The purchase price of the Reserved Instance.The number of reservations purchased.The tenancy of the instance.The instance type on which the Reserved Instance can be used.The Reserved Instance offering type.The Reserved Instance product platform description.The recurring charge tag assigned to the resource.The ID of the Reserved Instance.getStart()
The date and time the Reserved Instance started.getState()
The state of the Reserved Instance purchase.getTags()
Any tags assigned to the resource.The usage price of the Reserved Instance, per hour.int
hashCode()
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.void
setCurrencyCode
(String currencyCode) The currency of the Reserved Instance.void
setDuration
(Long duration) The duration of the Reserved Instance, in seconds.void
The time when the Reserved Instance expires.void
setFixedPrice
(Float fixedPrice) The purchase price of the Reserved Instance.void
setInstanceCount
(Integer instanceCount) The number of reservations purchased.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
setOfferingType
(OfferingTypeValues offeringType) The Reserved Instance offering type.void
setOfferingType
(String offeringType) The Reserved Instance offering type.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
setReservedInstancesId
(String reservedInstancesId) The ID of the Reserved Instance.void
The date and time the Reserved Instance started.void
setState
(ReservedInstanceState state) The state of the Reserved Instance purchase.void
The state of the Reserved Instance purchase.void
setTags
(Collection<Tag> tags) Any tags assigned to the resource.void
setUsagePrice
(Float usagePrice) The usage price of the Reserved Instance, per hour.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone
(String availabilityZone) The Availability Zone in which the Reserved Instance can be used.withCurrencyCode
(CurrencyCodeValues currencyCode) The currency of the Reserved Instance.withCurrencyCode
(String currencyCode) The currency of the Reserved Instance.withDuration
(Long duration) The duration of the Reserved Instance, in seconds.The time when the Reserved Instance expires.withFixedPrice
(Float fixedPrice) The purchase price of the Reserved Instance.withInstanceCount
(Integer instanceCount) The number of reservations purchased.withInstanceTenancy
(Tenancy instanceTenancy) The tenancy of the instance.withInstanceTenancy
(String instanceTenancy) The tenancy of the instance.withInstanceType
(InstanceType instanceType) The instance type on which the Reserved Instance can be used.withInstanceType
(String instanceType) The instance type on which the Reserved Instance can be used.withOfferingType
(OfferingTypeValues offeringType) The Reserved Instance offering type.withOfferingType
(String offeringType) The Reserved Instance offering type.withProductDescription
(RIProductDescription productDescription) The Reserved Instance product platform description.withProductDescription
(String productDescription) The Reserved Instance product platform description.withRecurringCharges
(RecurringCharge... recurringCharges) The recurring charge tag assigned to the resource.withRecurringCharges
(Collection<RecurringCharge> recurringCharges) The recurring charge tag assigned to the resource.withReservedInstancesId
(String reservedInstancesId) The ID of the Reserved Instance.The date and time the Reserved Instance started.withState
(ReservedInstanceState state) The state of the Reserved Instance purchase.The state of the Reserved Instance purchase.Any tags assigned to the resource.withTags
(Collection<Tag> tags) Any tags assigned to the resource.withUsagePrice
(Float usagePrice) The usage price of the Reserved Instance, per hour.
-
Constructor Details
-
ReservedInstances
public ReservedInstances()
-
-
Method Details
-
setReservedInstancesId
The ID of the Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the Reserved Instance.
-
getReservedInstancesId
The ID of the Reserved Instance.
- Returns:
- The ID of the Reserved Instance.
-
withReservedInstancesId
The ID of the Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
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:
-
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:
-
withInstanceType
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:
-
setInstanceType
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:
-
withInstanceType
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:
-
setAvailabilityZone
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
The Availability Zone in which the Reserved Instance can be used.
- Returns:
- The Availability Zone in which the Reserved Instance can be used.
-
withAvailabilityZone
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.
-
setStart
The date and time the Reserved Instance started.
- Parameters:
start
- The date and time the Reserved Instance started.
-
getStart
The date and time the Reserved Instance started.
- Returns:
- The date and time the Reserved Instance started.
-
withStart
The date and time the Reserved Instance started.
- Parameters:
start
- The date and time the Reserved Instance started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnd
The time when the Reserved Instance expires.
- Parameters:
end
- The time when the Reserved Instance expires.
-
getEnd
The time when the Reserved Instance expires.
- Returns:
- The time when the Reserved Instance expires.
-
withEnd
The time when the Reserved Instance expires.
- Parameters:
end
- The time when the Reserved Instance expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDuration
The duration of the Reserved Instance, in seconds.
- Parameters:
duration
- The duration of the Reserved Instance, in seconds.
-
getDuration
The duration of the Reserved Instance, in seconds.
- Returns:
- The duration of the Reserved Instance, in seconds.
-
withDuration
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
The usage price of the Reserved Instance, per hour.
- Parameters:
usagePrice
- The usage price of the Reserved Instance, per hour.
-
getUsagePrice
The usage price of the Reserved Instance, per hour.
- Returns:
- The usage price of the Reserved Instance, per hour.
-
withUsagePrice
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
The purchase price of the Reserved Instance.
- Parameters:
fixedPrice
- The purchase price of the Reserved Instance.
-
getFixedPrice
The purchase price of the Reserved Instance.
- Returns:
- The purchase price of the Reserved Instance.
-
withFixedPrice
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.
-
setInstanceCount
The number of reservations purchased.
- Parameters:
instanceCount
- The number of reservations purchased.
-
getInstanceCount
The number of reservations purchased.
- Returns:
- The number of reservations purchased.
-
withInstanceCount
The number of reservations purchased.
- Parameters:
instanceCount
- The number of reservations purchased.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProductDescription
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- See Also:
-
getProductDescription
The Reserved Instance product platform description.
- Returns:
- The Reserved Instance product platform description.
- See Also:
-
withProductDescription
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:
-
setProductDescription
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- See Also:
-
withProductDescription
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:
-
setState
The state of the Reserved Instance purchase.
- Parameters:
state
- The state of the Reserved Instance purchase.- See Also:
-
getState
The state of the Reserved Instance purchase.
- Returns:
- The state of the Reserved Instance purchase.
- See Also:
-
withState
The state of the Reserved Instance purchase.
- Parameters:
state
- The state of the Reserved Instance purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The state of the Reserved Instance purchase.
- Parameters:
state
- The state of the Reserved Instance purchase.- See Also:
-
withState
The state of the Reserved Instance purchase.
- Parameters:
state
- The state of the Reserved Instance purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getTags
Any tags assigned to the resource.
- Returns:
- Any tags assigned to the resource.
-
setTags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.
-
withTags
Any tags assigned to the resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceTenancy
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- See Also:
-
getInstanceTenancy
The tenancy of the instance.
- Returns:
- The tenancy of the instance.
- See Also:
-
withInstanceTenancy
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:
-
setInstanceTenancy
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- See Also:
-
withInstanceTenancy
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:
-
setCurrencyCode
The currency of the Reserved Instance. 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. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency isUSD
.- See Also:
-
getCurrencyCode
The currency of the Reserved Instance. 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. It's specified using ISO
4217 standard currency codes. At this time, the only supported
currency is
USD
. - See Also:
-
withCurrencyCode
The currency of the Reserved Instance. 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. 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:
-
setCurrencyCode
The currency of the Reserved Instance. 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. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency isUSD
.- See Also:
-
withCurrencyCode
The currency of the Reserved Instance. 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. 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:
-
setOfferingType
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- See Also:
-
getOfferingType
The Reserved Instance offering type.
- Returns:
- The Reserved Instance offering type.
- See Also:
-
withOfferingType
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:
-
setOfferingType
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- See Also:
-
withOfferingType
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:
-
getRecurringCharges
The recurring charge tag assigned to the resource.
- Returns:
- The recurring charge tag assigned to the resource.
-
setRecurringCharges
The recurring charge tag assigned to the resource.
- Parameters:
recurringCharges
- The recurring charge tag assigned to the resource.
-
withRecurringCharges
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
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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-