org.jclouds.aws.ec2.domain
Class SpotInstanceRequest

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

public class SpotInstanceRequest
extends Object
implements Comparable<SpotInstanceRequest>

Author:
Adrian Cole

Nested Class Summary
static class SpotInstanceRequest.Builder
           
static class SpotInstanceRequest.State
           
static class SpotInstanceRequest.Type
           
 
Constructor Summary
SpotInstanceRequest(String region, String availabilityZoneGroup, String launchedAvailabilityZone, Date createTime, String faultCode, String faultMessage, String instanceId, String launchGroup, LaunchSpecification launchSpecification, String productDescription, String id, float spotPrice, SpotInstanceRequest.State state, SpotInstanceRequest.Type type, Date validFrom, Date validUntil, Map<String,String> tags)
           
 
Method Summary
static SpotInstanceRequest.Builder builder()
           
 int compareTo(SpotInstanceRequest arg0)
           
 boolean equals(Object obj)
           
 String getAvailabilityZoneGroup()
           
 Date getCreateTime()
           
 String getFaultCode()
           
 String getFaultMessage()
           
 String getId()
           
 String getInstanceId()
           
 String getLaunchedAvailabilityZone()
           
 String getLaunchGroup()
           
 LaunchSpecification getLaunchSpecification()
           
 String getProductDescription()
           
 String getRegion()
           
 float getSpotPrice()
           
 SpotInstanceRequest.State getState()
           
 Map<String,String> getTags()
          tags that are present in the instance
 SpotInstanceRequest.Type getType()
           
 Date getValidFrom()
           
 Date getValidUntil()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotInstanceRequest

public SpotInstanceRequest(String region,
                           String availabilityZoneGroup,
                           @Nullable
                           String launchedAvailabilityZone,
                           Date createTime,
                           String faultCode,
                           String faultMessage,
                           String instanceId,
                           String launchGroup,
                           LaunchSpecification launchSpecification,
                           String productDescription,
                           String id,
                           float spotPrice,
                           SpotInstanceRequest.State state,
                           SpotInstanceRequest.Type type,
                           Date validFrom,
                           Date validUntil,
                           Map<String,String> tags)
Method Detail

builder

public static SpotInstanceRequest.Builder builder()

getRegion

public String getRegion()
Returns:
spot instance requests are in a region

getAvailabilityZoneGroup

public String getAvailabilityZoneGroup()

getLaunchedAvailabilityZone

public String getLaunchedAvailabilityZone()

getCreateTime

public Date getCreateTime()

getFaultCode

public String getFaultCode()

getFaultMessage

public String getFaultMessage()

getInstanceId

public String getInstanceId()

getLaunchGroup

public String getLaunchGroup()

getLaunchSpecification

public LaunchSpecification getLaunchSpecification()

getProductDescription

public String getProductDescription()

getId

public String getId()

getSpotPrice

public float getSpotPrice()

getState

public SpotInstanceRequest.State getState()

getType

public SpotInstanceRequest.Type getType()

getValidFrom

public Date getValidFrom()

getValidUntil

public Date getValidUntil()

getTags

public Map<String,String> getTags()
tags that are present in the instance


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

compareTo

public int compareTo(SpotInstanceRequest arg0)
Specified by:
compareTo in interface Comparable<SpotInstanceRequest>


Copyright © 2009-2012 jclouds. All Rights Reserved.