org.jclouds.aws.ec2.domain
Class Spot

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

public class Spot
extends Object
implements Comparable<Spot>

See Also:

Nested Class Summary
static class Spot.Builder
           
 
Constructor Summary
Spot(String region, String instanceType, String productDescription, float spotPrice, Date timestamp, String availabilityZone)
           
 
Method Summary
static Spot.Builder builder()
           
 int compareTo(Spot o)
           
 boolean equals(Object obj)
           
 String getAvailabilityZone()
           
 String getInstanceType()
           
 String getProductDescription()
           
 String getRegion()
          Deprecated. 
 float getSpotPrice()
           
 Date getTimestamp()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Spot

public Spot(String region,
            String instanceType,
            String productDescription,
            float spotPrice,
            Date timestamp,
            String availabilityZone)
Method Detail

builder

public static Spot.Builder builder()

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.


getInstanceType

public String getInstanceType()

getProductDescription

public String getProductDescription()

getSpotPrice

public float getSpotPrice()

getTimestamp

public Date getTimestamp()

getAvailabilityZone

public String getAvailabilityZone()

compareTo

public int compareTo(Spot o)
Specified by:
compareTo in interface Comparable<Spot>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.