Class ReservedInstancesOffering

java.lang.Object
org.jclouds.ec2.domain.ReservedInstancesOffering
All Implemented Interfaces:
Comparable<ReservedInstancesOffering>

public class ReservedInstancesOffering extends Object implements Comparable<ReservedInstancesOffering>
See Also:
  • Constructor Details

    • ReservedInstancesOffering

      public ReservedInstancesOffering(String region, String availabilityZone, long duration, float fixedPrice, String instanceType, String productDescription, String reservedInstancesOfferingId, float usagePrice)
  • Method Details

    • getRegion

      @Deprecated public String getRegion()
      Deprecated.
      To be removed in jclouds 1.6

      Warning

      Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
    • getAvailabilityZone

      public String getAvailabilityZone()
      Returns:
      The Availability Zone in which the Reserved Instance can be used.
    • getDuration

      public long getDuration()
      Returns:
      The duration of the Reserved Instance, in seconds
    • getFixedPrice

      public float getFixedPrice()
      Returns:
      The purchase price of the Reserved Instance.
    • getInstanceType

      public String getInstanceType()
      Returns:
      The instance type on which the Reserved Instance can be used.
    • getProductDescription

      public String getProductDescription()
      Returns:
      The Reserved Instance description.
    • getId

      public String getId()
      Returns:
      The ID of the Reserved Instance offering.
    • getUsagePrice

      public float getUsagePrice()
      Returns:
      The usage price of the Reserved Instance, per hour.
    • compareTo

      public int compareTo(ReservedInstancesOffering o)
      Specified by:
      compareTo in interface Comparable<ReservedInstancesOffering>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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