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>
- Author:
- Adrian Cole
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)
|
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)
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.