org.jclouds.ec2.domain
Class ReservedInstancesOffering

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

public class ReservedInstancesOffering
extends Object
implements Comparable<ReservedInstancesOffering>

Author:
Adrian Cole
See Also:

Constructor Summary
ReservedInstancesOffering(String region, String availabilityZone, long duration, float fixedPrice, String instanceType, String productDescription, String reservedInstancesOfferingId, float usagePrice)
           
 
Method Summary
 int compareTo(ReservedInstancesOffering o)
           
 boolean equals(Object obj)
           
 String getAvailabilityZone()
           
 long getDuration()
           
 float getFixedPrice()
           
 String getId()
           
 String getInstanceType()
           
 String getProductDescription()
           
 String getRegion()
           
 float getUsagePrice()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedInstancesOffering

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

getRegion

public String getRegion()

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


Copyright © 2009-2012 jclouds. All Rights Reserved.