com.amazonaws.services.ec2.model
Class ReservedInstancesOffering

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ReservedInstancesOffering

public class ReservedInstancesOffering
extends Object

An active offer for Amazon EC2 Reserved Instances.


Constructor Summary
ReservedInstancesOffering()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          The Availability Zone in which the Reserved Instances can be used.
 String getCurrencyCode()
          The currency of the reserved instance.
 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 (ex: default or dedicated).
 String getInstanceType()
          The instance type on which the Reserved Instances can be used.
 Boolean getMarketplace()
          Returns the value of the Marketplace property for this object.
 String getOfferingType()
          The Reserved Instance offering type.
 List<PricingDetail> getPricingDetails()
          Returns the value of the PricingDetails property for this object.
 String getProductDescription()
          The Reserved Instances description (ex: Windows or Unix/Linux).
 List<RecurringCharge> getRecurringCharges()
          The recurring charge tag assigned to the resource.
 String getReservedInstancesOfferingId()
          The unique ID of this Reserved Instances offering.
 Float getUsagePrice()
          The usage price of the Reserved Instance, per hour.
 int hashCode()
           
 Boolean isMarketplace()
          Returns the value of the Marketplace property for this object.
 void setAvailabilityZone(String availabilityZone)
          The Availability Zone in which the Reserved Instances can be used.
 void setCurrencyCode(String currencyCode)
          The currency of the reserved instance.
 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 (ex: default or dedicated).
 void setInstanceType(InstanceType instanceType)
          The instance type on which the Reserved Instances can be used.
 void setInstanceType(String instanceType)
          The instance type on which the Reserved Instances can be used.
 void setMarketplace(Boolean marketplace)
          Sets the value of the Marketplace property for this object.
 void setOfferingType(String offeringType)
          The Reserved Instance offering type.
 void setPricingDetails(Collection<PricingDetail> pricingDetails)
          Sets the value of the PricingDetails property for this object.
 void setProductDescription(String productDescription)
          The Reserved Instances description (ex: Windows or Unix/Linux).
 void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
          The recurring charge tag assigned to the resource.
 void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
          The unique ID of this Reserved Instances 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 Instances can be used.
 ReservedInstancesOffering withCurrencyCode(String currencyCode)
          The currency of the reserved instance.
 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 (ex: default or dedicated).
 ReservedInstancesOffering withInstanceType(InstanceType instanceType)
          The instance type on which the Reserved Instances can be used.
 ReservedInstancesOffering withInstanceType(String instanceType)
          The instance type on which the Reserved Instances can be used.
 ReservedInstancesOffering withMarketplace(Boolean marketplace)
          Sets the value of the Marketplace property for this object.
 ReservedInstancesOffering withOfferingType(String offeringType)
          The Reserved Instance offering type.
 ReservedInstancesOffering withPricingDetails(Collection<PricingDetail> pricingDetails)
          Sets the value of the PricingDetails property for this object.
 ReservedInstancesOffering withPricingDetails(PricingDetail... pricingDetails)
          Sets the value of the PricingDetails property for this object.
 ReservedInstancesOffering withProductDescription(String productDescription)
          The Reserved Instances description (ex: Windows or Unix/Linux).
 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 unique ID of this Reserved Instances offering.
 ReservedInstancesOffering withUsagePrice(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

ReservedInstancesOffering

public ReservedInstancesOffering()
Method Detail

getReservedInstancesOfferingId

public String getReservedInstancesOfferingId()
The unique ID of this Reserved Instances offering.

Returns:
The unique ID of this Reserved Instances offering.

setReservedInstancesOfferingId

public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)
The unique ID of this Reserved Instances offering.

Parameters:
reservedInstancesOfferingId - The unique ID of this Reserved Instances offering.

withReservedInstancesOfferingId

public ReservedInstancesOffering withReservedInstancesOfferingId(String reservedInstancesOfferingId)
The unique ID of this Reserved Instances offering.

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

Parameters:
reservedInstancesOfferingId - The unique ID of this Reserved Instances offering.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

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

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

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

setInstanceType

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

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

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

withInstanceType

public ReservedInstancesOffering withInstanceType(String instanceType)
The instance type on which the Reserved Instances 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, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The instance type on which the Reserved Instances 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 Instances can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

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

withInstanceType

public ReservedInstancesOffering withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances 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, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

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

getAvailabilityZone

public String getAvailabilityZone()
The Availability Zone in which the Reserved Instances can be used.

Returns:
The Availability Zone in which the Reserved Instances can be used.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances can be used.

Parameters:
availabilityZone - The Availability Zone in which the Reserved Instances can be used.

withAvailabilityZone

public ReservedInstancesOffering withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances 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 Instances can be used.
Returns:
A reference to this updated object so that method calls can be chained together.

getDuration

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

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

setDuration

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

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

withDuration

public ReservedInstancesOffering withDuration(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 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(Float usagePrice)
The usage price of the Reserved Instance, per hour.

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

withUsagePrice

public ReservedInstancesOffering withUsagePrice(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 Float getFixedPrice()
The purchase price of the Reserved Instance.

Returns:
The purchase price of the Reserved Instance.

setFixedPrice

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

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

withFixedPrice

public ReservedInstancesOffering withFixedPrice(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.

getProductDescription

public String getProductDescription()
The Reserved Instances description (ex: Windows or Unix/Linux).

Returns:
The Reserved Instances description (ex: Windows or Unix/Linux).

setProductDescription

public void setProductDescription(String productDescription)
The Reserved Instances description (ex: Windows or Unix/Linux).

Parameters:
productDescription - The Reserved Instances description (ex: Windows or Unix/Linux).

withProductDescription

public ReservedInstancesOffering withProductDescription(String productDescription)
The Reserved Instances description (ex: Windows or Unix/Linux).

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

Parameters:
productDescription - The Reserved Instances description (ex: Windows or Unix/Linux).
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTenancy

public String getInstanceTenancy()
The tenancy of the reserved instance (ex: default or dedicated).

Returns:
The tenancy of the reserved instance (ex: default or dedicated).

setInstanceTenancy

public void setInstanceTenancy(String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated).

Parameters:
instanceTenancy - The tenancy of the reserved instance (ex: default or dedicated).

withInstanceTenancy

public ReservedInstancesOffering withInstanceTenancy(String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated).

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

Parameters:
instanceTenancy - The tenancy of the reserved instance (ex: default or dedicated).
Returns:
A reference to this updated object so that method calls can be chained together.

getCurrencyCode

public String getCurrencyCode()
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

Returns:
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

setCurrencyCode

public void setCurrencyCode(String currencyCode)
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

Parameters:
currencyCode - The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

withCurrencyCode

public ReservedInstancesOffering withCurrencyCode(String currencyCode)
The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).

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

Parameters:
currencyCode - The currency of the reserved instance. Specified using ISO 4217 standard (e.g., USD, JPY).
Returns:
A reference to this updated object so that method calls can be chained together.

getOfferingType

public String getOfferingType()
The Reserved Instance offering type.

Returns:
The Reserved Instance offering type.

setOfferingType

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

Parameters:
offeringType - The Reserved Instance offering type.

withOfferingType

public ReservedInstancesOffering withOfferingType(String offeringType)
The Reserved Instance offering type.

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

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

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.

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 ReservedInstancesOffering withRecurringCharges(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.

isMarketplace

public Boolean isMarketplace()
Returns the value of the Marketplace property for this object.

Returns:
The value of the Marketplace property for this object.

setMarketplace

public void setMarketplace(Boolean marketplace)
Sets the value of the Marketplace property for this object.

Parameters:
marketplace - The new value for the Marketplace property for this object.

withMarketplace

public ReservedInstancesOffering withMarketplace(Boolean marketplace)
Sets the value of the Marketplace property for this object.

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

Parameters:
marketplace - The new value for the Marketplace property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getMarketplace

public Boolean getMarketplace()
Returns the value of the Marketplace property for this object.

Returns:
The value of the Marketplace property for this object.

getPricingDetails

public List<PricingDetail> getPricingDetails()
Returns the value of the PricingDetails property for this object.

Returns:
The value of the PricingDetails property for this object.

setPricingDetails

public void setPricingDetails(Collection<PricingDetail> pricingDetails)
Sets the value of the PricingDetails property for this object.

Parameters:
pricingDetails - The new value for the PricingDetails property for this object.

withPricingDetails

public ReservedInstancesOffering withPricingDetails(PricingDetail... pricingDetails)
Sets the value of the PricingDetails property for this object.

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

Parameters:
pricingDetails - The new value for the PricingDetails property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withPricingDetails

public ReservedInstancesOffering withPricingDetails(Collection<PricingDetail> pricingDetails)
Sets the value of the PricingDetails property for this object.

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

Parameters:
pricingDetails - The new value for the PricingDetails property for this object.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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