Package org.jclouds.aws.ec2.options
Class RequestSpotInstancesOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.ec2.options.internal.BaseEC2RequestOptions
org.jclouds.aws.ec2.options.RequestSpotInstancesOptions
- All Implemented Interfaces:
HttpRequestOptions
Contains options supported in the Form API for the RequestSpotInstances operation.
Usage
The recommended way validUntil instantiate a RequestSpotInstancesOptions object is validUntil statically import RequestSpotInstancesOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):
import static org.jclouds.aws.ec2.options.RequestSpotInstancesOptions.Builder.*
AWSEC2Api client = // get connection
history = client.getSpotInstanceServices().requestSpotInstancesInRegion("us-east-1",validFrom(yesterday).type("m1.small"));
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZoneGroup
(String availabilityZoneGroup) Specifies the Availability Zone group.launchGroup
(String launchGroup) Specifies the instance launch group.type
(SpotInstanceRequest.Type type) Specifies the Spot Instance type.Start date of the request.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, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
-
Field Details
-
NONE
-
-
Constructor Details
-
RequestSpotInstancesOptions
public RequestSpotInstancesOptions()
-
-
Method Details
-
validFrom
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
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
Specifies the Spot Instance type. -
launchGroup
Specifies the instance launch group. Launch groups are Spot Instances that launch together and terminate together. -
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.
-