public class PutBucketOptions extends BaseHttpRequestOptions
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
Future createdInEu = connection.putBucketIfNotExists("bucketName",createIn(EU));
Modifier and Type | Class and Description |
---|---|
static class |
PutBucketOptions.Builder |
formParameters, headers, pathSuffix, payload, queryParameters
Constructor and Description |
---|
PutBucketOptions() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<String,String> |
buildRequestHeaders()
Builds headers representing options.
|
CannedAccessPolicy |
getAcl() |
void |
setHeaderTag(String headerTag) |
PutBucketOptions |
withBucketAcl(CannedAccessPolicy acl)
Override the default ACL (private) with the specified one.
|
buildFormParameters, buildPathSuffix, buildQueryParameters, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
@Inject public void setHeaderTag(@Named(value="jclouds.aws.header.tag") String headerTag)
public com.google.common.collect.Multimap<String,String> buildRequestHeaders()
BaseHttpRequestOptions
buildRequestHeaders
in interface HttpRequestOptions
buildRequestHeaders
in class BaseHttpRequestOptions
public PutBucketOptions withBucketAcl(CannedAccessPolicy acl)
CannedAccessPolicy
public CannedAccessPolicy getAcl()
Copyright © 2009-2013 jclouds. All Rights Reserved.