org.jclouds.ec2.options
Class BundleInstanceS3StorageOptions

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

public class BundleInstanceS3StorageOptions
extends BaseEC2RequestOptions

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

Usage

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

import static org.jclouds.ec2.options.BundleInstanceS3StorageOptions.Builder.*

EC2Client connection = // get connection String imageId = connection.getWindowsServices().bundleInstanceInRegion(...bucketOwnedBy(anotherAccessKey));

Author:
Adrian Cole
See Also:

Nested Class Summary
static class BundleInstanceS3StorageOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
BundleInstanceS3StorageOptions()
           
 
Method Summary
 BundleInstanceS3StorageOptions bucketOwnedBy(String ccessKeyId)
           
 com.google.common.collect.Multimap<String,String> buildFormParameters()
          Builds form parameters representing options.
 String getAwsAccessKeyId()
           
 
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
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
 

Constructor Detail

BundleInstanceS3StorageOptions

public BundleInstanceS3StorageOptions()
Method Detail

buildFormParameters

public com.google.common.collect.Multimap<String,String> buildFormParameters()
Description copied from interface: HttpRequestOptions
Builds form parameters representing options.

Specified by:
buildFormParameters in interface HttpRequestOptions
Overrides:
buildFormParameters in class BaseHttpRequestOptions
Returns:
map that may contain query parameters.

bucketOwnedBy

public BundleInstanceS3StorageOptions bucketOwnedBy(String ccessKeyId)
Parameters:
ccessKeyId - The Access Key ID of the owner of the Amazon S3 bucket.

getAwsAccessKeyId

public String getAwsAccessKeyId()
Returns:
The Access Key ID of the owner of the Amazon S3 bucket.


Copyright © 2009-2012 jclouds. All Rights Reserved.