|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.http.options.BaseHttpRequestOptions org.jclouds.ec2.options.internal.BaseEC2RequestOptions org.jclouds.aws.ec2.options.RequestSpotInstancesOptions
public class RequestSpotInstancesOptions
Contains options supported in the Form API for the RequestSpotInstances operation.
import static org.jclouds.aws.ec2.options.RequestSpotInstancesOptions.Builder.*
AWSEC2Client client = // get connection
history = client.getSpotInstanceServices().requestSpotInstancesInRegion("us-east-1",validFrom(yesterday).type("m1.small"));
- Author:
- Adrian Cole
- See Also:
Nested Class Summary
static class
RequestSpotInstancesOptions.Builder
Field Summary
static RequestSpotInstancesOptions
NONE
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor Summary
RequestSpotInstancesOptions()
Method Summary
RequestSpotInstancesOptions
availabilityZoneGroup(String availabilityZoneGroup)
Specifies the Availability Zone group.
RequestSpotInstancesOptions
launchGroup(String launchGroup)
Specifies the instance launch group.
RequestSpotInstancesOptions
type(SpotInstanceRequest.Type type)
Specifies the Spot Instance type.
RequestSpotInstancesOptions
validFrom(Date start)
Start date of the request.
RequestSpotInstancesOptions
validUntil(Date end)
End date of the request.
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
NONE
public static final RequestSpotInstancesOptions NONE
Constructor Detail
RequestSpotInstancesOptions
public RequestSpotInstancesOptions()
Method Detail
validFrom
public RequestSpotInstancesOptions validFrom(Date start)
- Start date of the request. If this is a one-time request, the request becomes active at this
date and time and remains active until all instances launch, the request expires, or the
request is canceled. If the request is persistent, the request becomes active at this date and
time and remains active until it expires or is canceled.
validUntil
public RequestSpotInstancesOptions validUntil(Date end)
- End date of the request. If this is a one-time request, the request remains active until all
instances launch, the request is canceled, or this date is reached. If the request is
persistent, it remains active until it is canceled or this date and time is reached.
type
public RequestSpotInstancesOptions type(SpotInstanceRequest.Type type)
- Specifies the Spot Instance type.
launchGroup
public RequestSpotInstancesOptions launchGroup(String launchGroup)
- Specifies the instance launch group. Launch groups are Spot Instances that launch together and
terminate together.
availabilityZoneGroup
public RequestSpotInstancesOptions availabilityZoneGroup(String availabilityZoneGroup)
- Specifies the Availability Zone group. If you specify the same Availability Zone group for all
Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009-2011 jclouds. All Rights Reserved.