Package org.jclouds.s3.options
Class PutBucketOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.s3.options.PutBucketOptions
- All Implemented Interfaces:
HttpRequestOptions
Contains options supported in the REST API for the PUT bucket operation.
Usage
The recommended way to instantiate a PutBucketOptions object is to statically import PutBucketOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):
import static org.jclouds.s3.commands.options.PutBucketOptions.Builder.*
import static org.jclouds.s3.domain.S3Bucket.Metadata.LocationConstraint.*;
import org.jclouds.s3.S3Client;
S3Client connection = // get connection
boolean createdInEu = connection.putBucketIfNotExists("bucketName",createIn(EU));
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds headers representing options.getAcl()
void
setHeaderTag
(String headerTag) Override the default ACL (private) with the specified one.Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
Constructor Details
-
PutBucketOptions
public PutBucketOptions()
-
-
Method Details
-
setHeaderTag
-
buildRequestHeaders
Description copied from class:BaseHttpRequestOptions
Builds headers representing options.- Specified by:
buildRequestHeaders
in interfaceHttpRequestOptions
- Overrides:
buildRequestHeaders
in classBaseHttpRequestOptions
- Returns:
- multimap that may contain headers.
-
withBucketAcl
Override the default ACL (private) with the specified one.- See Also:
-
getAcl
- See Also:
-