org.jclouds.aws.ec2.options
Class DescribeSpotPriceHistoryOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.ec2.options.internal.BaseEC2RequestOptions
          extended by org.jclouds.aws.ec2.options.DescribeSpotPriceHistoryOptions
All Implemented Interfaces:
HttpRequestOptions

public class DescribeSpotPriceHistoryOptions
extends BaseEC2RequestOptions

Contains options supported in the Form API for the DescribeSpotPriceHistory operation.

Usage

The recommended way to instantiate a DescribeSpotPriceHistoryOptions object is to statically import DescribeSpotPriceHistoryOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

import static org.jclouds.aws.ec2.options.DescribeSpotPriceHistoryOptions.Builder.*

AWSEC2Client client = // get connection history = client.getSpotInstanceServices().describeSpotPriceHistoryInRegion(from(yesterday).instanceType("m1.small"));

Author:
Adrian Cole
See Also:

Nested Class Summary
static class DescribeSpotPriceHistoryOptions.Builder
           
 
Field Summary
static DescribeSpotPriceHistoryOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
DescribeSpotPriceHistoryOptions()
           
 
Method Summary
 DescribeSpotPriceHistoryOptions from(Date start)
          Start date and time of the Spot Instance price history data.
 DescribeSpotPriceHistoryOptions instanceType(String type)
          Specifies the instance type to return.
 DescribeSpotPriceHistoryOptions productDescription(String description)
          The description of the AMI.
 DescribeSpotPriceHistoryOptions to(Date end)
          End date and time of the Spot Instance price history data.
 
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 DescribeSpotPriceHistoryOptions NONE
Constructor Detail

DescribeSpotPriceHistoryOptions

public DescribeSpotPriceHistoryOptions()
Method Detail

from

public DescribeSpotPriceHistoryOptions from(Date start)
Start date and time of the Spot Instance price history data.


to

public DescribeSpotPriceHistoryOptions to(Date end)
End date and time of the Spot Instance price history data.


instanceType

public DescribeSpotPriceHistoryOptions instanceType(String type)
Specifies the instance type to return.


productDescription

public DescribeSpotPriceHistoryOptions productDescription(String description)
The description of the AMI.



Copyright © 2009-2011 jclouds. All Rights Reserved.