Package org.jclouds.s3.options
Class PutBucketOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.s3.options.PutBucketOptions
-
- All Implemented Interfaces:
org.jclouds.http.options.HttpRequestOptions
public class PutBucketOptions extends org.jclouds.http.options.BaseHttpRequestOptionsContains 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 Modifier and Type Class Description static classPutBucketOptions.Builder
-
Constructor Summary
Constructors Constructor Description PutBucketOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.Multimap<String,String>buildRequestHeaders()CannedAccessPolicygetAcl()voidsetHeaderTag(String headerTag)PutBucketOptionswithBucketAcl(CannedAccessPolicy acl)Override the default ACL (private) with the specified one.
-
-
-
Method Detail
-
setHeaderTag
@Inject public void setHeaderTag(@Named("jclouds.aws.header.tag") String headerTag)
-
buildRequestHeaders
public com.google.common.collect.Multimap<String,String> buildRequestHeaders()
- Specified by:
buildRequestHeadersin interfaceorg.jclouds.http.options.HttpRequestOptions- Overrides:
buildRequestHeadersin classorg.jclouds.http.options.BaseHttpRequestOptions
-
withBucketAcl
public PutBucketOptions withBucketAcl(CannedAccessPolicy acl)
Override the default ACL (private) with the specified one.- See Also:
CannedAccessPolicy
-
getAcl
public CannedAccessPolicy getAcl()
-
-