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:
org.jclouds.http.options.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.*

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

See Also:

Nested Class Summary
static class BundleInstanceS3StorageOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
 
Constructor Summary
BundleInstanceS3StorageOptions()
           
 
Method Summary
 BundleInstanceS3StorageOptions bucketOwnedBy(String ccessKeyId)
           
 com.google.common.collect.Multimap<String,String> buildFormParameters()
           
 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
buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, 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()
Specified by:
buildFormParameters in interface org.jclouds.http.options.HttpRequestOptions
Overrides:
buildFormParameters in class org.jclouds.http.options.BaseHttpRequestOptions

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-2014 The Apache Software Foundation. All Rights Reserved.