Package 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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(ReservedInstancesOffering o)
boolean
equals(Object obj)
String
getAvailabilityZone()
long
getDuration()
float
getFixedPrice()
String
getId()
String
getInstanceType()
String
getProductDescription()
String
getRegion()
Deprecated.float
getUsagePrice()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
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 interfaceComparable<ReservedInstancesOffering>
-
-