Class PutObjectOptions

  • All Implemented Interfaces:
    HttpRequestOptions
    Direct Known Subclasses:
    AWSS3PutObjectOptions

    public class PutObjectOptions
    extends BaseHttpRequestOptions
    Contains options supported in the REST API for the PUT object operation.

    Usage

    The recommended way to instantiate a PutObjectOptions object is to statically import PutObjectOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

    import static org.jclouds.s3.commands.options.PutObjectOptions.Builder.* import org.jclouds.s3.S3Client; S3Client connection = // get connection boolean publiclyReadable = connection.putObject("bucketName",new S3Object("key","value"), withAcl(CannedAccessPolicy.PUBLIC_READ));