public class PutObjectOptions extends BaseHttpRequestOptions
import static org.jclouds.s3.commands.options.PutObjectOptions.Builder.*
import org.jclouds.s3.S3Client;
S3Client connection = // get connection
Future publicly readable = connection.putObject("bucketName",new S3Object("key","value"), withAcl(CannedAccessPolicy.PUBLIC_READ));
Modifier and Type | Class and Description |
---|---|
static class |
PutObjectOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static PutObjectOptions |
NONE |
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor and Description |
---|
PutObjectOptions() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<String,String> |
buildRequestHeaders()
Builds headers representing options.
|
CannedAccessPolicy |
getAcl() |
void |
setHeaderTag(String headerTag) |
PutObjectOptions |
withAcl(CannedAccessPolicy acl)
Override the default ACL (private) with the specified one.
|
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
public static final PutObjectOptions NONE
@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 PutObjectOptions withAcl(CannedAccessPolicy acl)
CannedAccessPolicy
public CannedAccessPolicy getAcl()
withAcl(CannedAccessPolicy)
Copyright © 2009-2012 jclouds. All Rights Reserved.