com.amazonaws.services.ec2.model
Class ReservedInstances

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ReservedInstances
All Implemented Interfaces:
java.io.Serializable

public class ReservedInstances
extends java.lang.Object
implements java.io.Serializable

Describes a Reserved Instance.

See Also:
Serialized Form

Constructor Summary
ReservedInstances()
           
 
Method Summary
 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.
 java.lang.Long getDuration()
          The duration of the Reserved Instance, in seconds.
 java.util.Date getEnd()
          The time when the Reserved Instance expires.
 java.lang.Float getFixedPrice()
          The purchase price of the Reserved Instance.
 java.lang.Integer getInstanceCount()
          The number of Reserved Instances purchased.
 java.lang.String getInstanceTenancy()
          The tenancy of the reserved instance.
 java.lang.String getInstanceType()
          The instance type on which the Reserved Instance can be used.
 java.lang.String getOfferingType()
          The Reserved Instance offering type.
 java.lang.String getProductDescription()
          The Reserved Instance description.
 java.util.List<RecurringCharge> getRecurringCharges()
          The recurring charge tag assigned to the resource.
 java.lang.String getReservedInstancesId()
          The ID of the Reserved Instance.
 java.util.Date getStart()
          The date and time the Reserved Instance started.
 java.lang.String getState()
          The state of the Reserved Instance purchase.
 java.util.List<Tag> getTags()
          Any tags assigned to the resource.
 java.lang.Float getUsagePrice()
          The usage price of the Reserved Instance, per hour.
 int hashCode()
           
 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.
 void setCurrencyCode(java.lang.String currencyCode)
          The currency of the Reserved Instance.
 void setDuration(java.lang.Long duration)
          The duration of the Reserved Instance, in seconds.
 void setEnd(java.util.Date end)
          The time when the Reserved Instance expires.
 void setFixedPrice(java.lang.Float fixedPrice)
          The purchase price of the Reserved Instance.
 void setInstanceCount(java.lang.Integer instanceCount)
          The number of Reserved Instances purchased.
 void setInstanceTenancy(java.lang.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(java.lang.String instanceType)
          The instance type on which the Reserved Instance can be used.
 void setOfferingType(OfferingTypeValues offeringType)
          The Reserved Instance offering type.
 void setOfferingType(java.lang.String offeringType)
          The Reserved Instance offering type.
 void setProductDescription(RIProductDescription productDescription)
          The Reserved Instance description.
 void setProductDescription(java.lang.String productDescription)
          The Reserved Instance description.
 void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
          The recurring charge tag assigned to the resource.
 void setReservedInstancesId(java.lang.String reservedInstancesId)
          The ID of the Reserved Instance.
 void setStart(java.util.Date start)
          The date and time the Reserved Instance started.
 void setState(ReservedInstanceState state)
          The state of the Reserved Instance purchase.
 void setState(java.lang.String state)
          The state of the Reserved Instance purchase.
 void setTags(java.util.Collection<Tag> tags)
          Any tags assigned to the resource.
 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.
 ReservedInstances withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone in which the Reserved Instance can be used.
 ReservedInstances withCurrencyCode(CurrencyCodeValues currencyCode)
          The currency of the Reserved Instance.
 ReservedInstances withCurrencyCode(java.lang.String currencyCode)
          The currency of the Reserved Instance.
 ReservedInstances withDuration(java.lang.Long duration)
          The duration of the Reserved Instance, in seconds.
 ReservedInstances withEnd(java.util.Date end)
          The time when the Reserved Instance expires.
 ReservedInstances withFixedPrice(java.lang.Float fixedPrice)
          The purchase price of the Reserved Instance.
 ReservedInstances withInstanceCount(java.lang.Integer instanceCount)
          The number of Reserved Instances purchased.
 ReservedInstances withInstanceTenancy(java.lang.String instanceTenancy)
          The tenancy of the reserved instance.
 ReservedInstances withInstanceTenancy(Tenancy instanceTenancy)
          The tenancy of the reserved instance.
 ReservedInstances withInstanceType(InstanceType instanceType)
          The instance type on which the Reserved Instance can be used.
 ReservedInstances withInstanceType(java.lang.String instanceType)
          The instance type on which the Reserved Instance can be used.
 ReservedInstances withOfferingType(OfferingTypeValues offeringType)
          The Reserved Instance offering type.
 ReservedInstances withOfferingType(java.lang.String offeringType)
          The Reserved Instance offering type.
 ReservedInstances withProductDescription(RIProductDescription productDescription)
          The Reserved Instance description.
 ReservedInstances withProductDescription(java.lang.String productDescription)
          The Reserved Instance description.
 ReservedInstances withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
          The recurring charge tag assigned to the resource.
 ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)
          The recurring charge tag assigned to the resource.
 ReservedInstances withReservedInstancesId(java.lang.String reservedInstancesId)
          The ID of the Reserved Instance.
 ReservedInstances withStart(java.util.Date start)
          The date and time the Reserved Instance started.
 ReservedInstances withState(ReservedInstanceState state)
          The state of the Reserved Instance purchase.
 ReservedInstances withState(java.lang.String state)
          The state of the Reserved Instance purchase.
 ReservedInstances withTags(java.util.Collection<Tag> tags)
          Any tags assigned to the resource.
 ReservedInstances withTags(Tag... tags)
          Any tags assigned to the resource.
 ReservedInstances withUsagePrice(java.lang.Float usagePrice)
          The usage price of the Reserved Instance, per hour.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedInstances

public ReservedInstances()
Method Detail

getReservedInstancesId

public java.lang.String getReservedInstancesId()
The ID of the Reserved Instance.

Returns:
The ID of the Reserved Instance.

setReservedInstancesId

public void setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.

Parameters:
reservedInstancesId - The ID of the Reserved Instance.

withReservedInstancesId

public ReservedInstances withReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesId - The ID of the Reserved Instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public java.lang.String getInstanceType()
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, 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

Returns:
The instance type on which the Reserved Instance can be used.
See Also:
InstanceType

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, 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

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
See Also:
InstanceType

withInstanceType

public ReservedInstances withInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.

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, 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

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, 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

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
See Also:
InstanceType

withInstanceType

public ReservedInstances withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.

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, 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

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getAvailabilityZone

public java.lang.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.

setAvailabilityZone

public void setAvailabilityZone(java.lang.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.

withAvailabilityZone

public ReservedInstances withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone in which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.

getStart

public java.util.Date getStart()
The date and time the Reserved Instance started.

Returns:
The date and time the Reserved Instance started.

setStart

public void setStart(java.util.Date start)
The date and time the Reserved Instance started.

Parameters:
start - The date and time the Reserved Instance started.

withStart

public ReservedInstances withStart(java.util.Date start)
The date and time the Reserved Instance started.

Returns a reference to this object so that method calls can be chained together.

Parameters:
start - The date and time the Reserved Instance started.
Returns:
A reference to this updated object so that method calls can be chained together.

getEnd

public java.util.Date getEnd()
The time when the Reserved Instance expires.

Returns:
The time when the Reserved Instance expires.

setEnd

public void setEnd(java.util.Date end)
The time when the Reserved Instance expires.

Parameters:
end - The time when the Reserved Instance expires.

withEnd

public ReservedInstances withEnd(java.util.Date end)
The time when the Reserved Instance expires.

Returns a reference to this object so that method calls can be chained together.

Parameters:
end - The time when the Reserved Instance expires.
Returns:
A reference to this updated object so that method calls can be chained together.

getDuration

public java.lang.Long getDuration()
The duration of the Reserved Instance, in seconds.

Returns:
The duration of the Reserved Instance, in seconds.

setDuration

public void setDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.

Parameters:
duration - The duration of the Reserved Instance, in seconds.

withDuration

public ReservedInstances withDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds.

Returns a reference to this object so that method calls can be chained together.

Parameters:
duration - The duration of the Reserved Instance, in seconds.
Returns:
A reference to this updated object so that method calls can be chained together.

getUsagePrice

public java.lang.Float getUsagePrice()
The usage price of the Reserved Instance, per hour.

Returns:
The usage price of the Reserved Instance, per hour.

setUsagePrice

public void setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.

Parameters:
usagePrice - The usage price of the Reserved Instance, per hour.

withUsagePrice

public ReservedInstances withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour.

Returns a reference to this object so that method calls can be chained together.

Parameters:
usagePrice - The usage price of the Reserved Instance, per hour.
Returns:
A reference to this updated object so that method calls can be chained together.

getFixedPrice

public java.lang.Float getFixedPrice()
The purchase price of the Reserved Instance.

Returns:
The purchase price of the Reserved Instance.

setFixedPrice

public void setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.

Parameters:
fixedPrice - The purchase price of the Reserved Instance.

withFixedPrice

public ReservedInstances withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
fixedPrice - The purchase price of the Reserved Instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCount

public java.lang.Integer getInstanceCount()
The number of Reserved Instances purchased.

Returns:
The number of Reserved Instances purchased.

setInstanceCount

public void setInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances purchased.

Parameters:
instanceCount - The number of Reserved Instances purchased.

withInstanceCount

public ReservedInstances withInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances purchased.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCount - The number of Reserved Instances purchased.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductDescription

public java.lang.String getProductDescription()
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Returns:
The Reserved Instance description.
See Also:
RIProductDescription

setProductDescription

public void setProductDescription(java.lang.String productDescription)
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription - The Reserved Instance description.
See Also:
RIProductDescription

withProductDescription

public ReservedInstances withProductDescription(java.lang.String productDescription)
The Reserved Instance description.

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)

Parameters:
productDescription - The Reserved Instance description.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RIProductDescription

setProductDescription

public void setProductDescription(RIProductDescription productDescription)
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription - The Reserved Instance description.
See Also:
RIProductDescription

withProductDescription

public ReservedInstances withProductDescription(RIProductDescription productDescription)
The Reserved Instance description.

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)

Parameters:
productDescription - The Reserved Instance description.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RIProductDescription

getState

public java.lang.String getState()
The state of the Reserved Instance purchase.

Constraints:
Allowed Values: payment-pending, active, payment-failed, retired

Returns:
The state of the Reserved Instance purchase.
See Also:
ReservedInstanceState

setState

public void setState(java.lang.String state)
The state of the Reserved Instance purchase.

Constraints:
Allowed Values: payment-pending, active, payment-failed, retired

Parameters:
state - The state of the Reserved Instance purchase.
See Also:
ReservedInstanceState

withState

public ReservedInstances withState(java.lang.String state)
The state of the Reserved Instance purchase.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: payment-pending, active, payment-failed, retired

Parameters:
state - The state of the Reserved Instance purchase.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ReservedInstanceState

setState

public void setState(ReservedInstanceState state)
The state of the Reserved Instance purchase.

Constraints:
Allowed Values: payment-pending, active, payment-failed, retired

Parameters:
state - The state of the Reserved Instance purchase.
See Also:
ReservedInstanceState

withState

public ReservedInstances withState(ReservedInstanceState state)
The state of the Reserved Instance purchase.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: payment-pending, active, payment-failed, retired

Parameters:
state - The state of the Reserved Instance purchase.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ReservedInstanceState

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the resource.

Returns:
Any tags assigned to the resource.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.

Parameters:
tags - Any tags assigned to the resource.

withTags

public ReservedInstances withTags(Tag... tags)
Any tags assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public ReservedInstances withTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTenancy

public java.lang.String getInstanceTenancy()
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

Returns:
The tenancy of the reserved instance.
See Also:
Tenancy

setInstanceTenancy

public void setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The tenancy of the reserved instance.
See Also:
Tenancy

withInstanceTenancy

public ReservedInstances withInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the reserved instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The tenancy of the reserved instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

setInstanceTenancy

public void setInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The tenancy of the reserved instance.
See Also:
Tenancy

withInstanceTenancy

public ReservedInstances withInstanceTenancy(Tenancy instanceTenancy)
The tenancy of the reserved instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The tenancy of the reserved instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

getCurrencyCode

public java.lang.String 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.

Constraints:
Allowed Values: 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:
CurrencyCodeValues

setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Constraints:
Allowed Values: 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 is USD.
See Also:
CurrencyCodeValues

withCurrencyCode

public ReservedInstances withCurrencyCode(java.lang.String currencyCode)
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 a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: 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 is USD.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
CurrencyCodeValues

setCurrencyCode

public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Constraints:
Allowed Values: 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 is USD.
See Also:
CurrencyCodeValues

withCurrencyCode

public ReservedInstances withCurrencyCode(CurrencyCodeValues currencyCode)
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 a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: 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 is USD.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
CurrencyCodeValues

getOfferingType

public java.lang.String getOfferingType()
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Returns:
The Reserved Instance offering type.
See Also:
OfferingTypeValues

setOfferingType

public void setOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType - The Reserved Instance offering type.
See Also:
OfferingTypeValues

withOfferingType

public ReservedInstances withOfferingType(java.lang.String offeringType)
The Reserved Instance offering type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType - The Reserved Instance offering type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
OfferingTypeValues

setOfferingType

public void setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType - The Reserved Instance offering type.
See Also:
OfferingTypeValues

withOfferingType

public ReservedInstances withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType - The Reserved Instance offering type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
OfferingTypeValues

getRecurringCharges

public java.util.List<RecurringCharge> getRecurringCharges()
The recurring charge tag assigned to the resource.

Returns:
The recurring charge tag assigned to the resource.

setRecurringCharges

public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.

Parameters:
recurringCharges - The recurring charge tag assigned to the resource.

withRecurringCharges

public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges - The recurring charge tag assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

withRecurringCharges

public ReservedInstances withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges - The recurring charge tag assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.