Package org.jclouds.ec2.options
Class BundleInstanceS3StorageOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.ec2.options.internal.BaseEC2RequestOptions
-
- 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.* EC2Api connection = // get connection String imageId = connection.getWindowsServices().bundleInstanceInRegion(...bucketOwnedBy(anotherAccessKey));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BundleInstanceS3StorageOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description BundleInstanceS3StorageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
-
-
-
-
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 interfaceHttpRequestOptions
- Overrides:
buildFormParameters
in classBaseHttpRequestOptions
- 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.
-
-