Package org.jclouds.aws.ec2.domain
Class SpotInstanceRequest
- java.lang.Object
-
- org.jclouds.aws.ec2.domain.SpotInstanceRequest
-
- All Implemented Interfaces:
Comparable<SpotInstanceRequest>
public class SpotInstanceRequest extends Object implements Comparable<SpotInstanceRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpotInstanceRequest.Builder
static class
SpotInstanceRequest.State
static class
SpotInstanceRequest.Type
-
Constructor Summary
Constructors Constructor Description 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, String rawState, SpotInstanceRequest.Type type, Date validFrom, Date validUntil, String statusCode, String statusMessage, Date statusUpdateTime, Map<String,String> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getRawState()
String
getRegion()
float
getSpotPrice()
SpotInstanceRequest.State
getState()
String
getStatusCode()
String
getStatusMessage()
Date
getStatusUpdateTime()
Map<String,String>
getTags()
tags that are present in the instanceSpotInstanceRequest.Type
getType()
Date
getValidFrom()
Date
getValidUntil()
int
hashCode()
String
toString()
-
-
-
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, String rawState, SpotInstanceRequest.Type type, Date validFrom, Date validUntil, String statusCode, String statusMessage, Date statusUpdateTime, 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()
-
getRawState
public String getRawState()
-
getType
public SpotInstanceRequest.Type getType()
-
getValidFrom
public Date getValidFrom()
-
getValidUntil
public Date getValidUntil()
-
getStatusCode
public String getStatusCode()
-
getStatusMessage
public String getStatusMessage()
-
getStatusUpdateTime
public Date getStatusUpdateTime()
-
compareTo
public int compareTo(SpotInstanceRequest arg0)
- Specified by:
compareTo
in interfaceComparable<SpotInstanceRequest>
-
-