org.jclouds.ec2.domain
Class ReservedInstancesOffering
java.lang.Object
org.jclouds.ec2.domain.ReservedInstancesOffering
- All Implemented Interfaces:
- Comparable<ReservedInstancesOffering>
public class ReservedInstancesOffering
- extends Object
- implements Comparable<ReservedInstancesOffering>
- Author:
- Adrian Cole
- See Also:
ReservedInstancesOffering
public ReservedInstancesOffering(String region,
String availabilityZone,
long duration,
float fixedPrice,
String instanceType,
String productDescription,
String reservedInstancesOfferingId,
float usagePrice)
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.