/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutObjectOptions withAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public CopyObjectOptions overrideAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public CopyObjectOptions overrideAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public CopyObjectOptions overrideAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public CopyObjectOptions overrideAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutObjectOptions withAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutBucketOptions withBucketAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(S3Headers.CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutBucketOptions withBucketAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(S3Headers.CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutBucketOptions withBucketAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(S3Headers.CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutObjectOptions withAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public CopyObjectOptions overrideAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutBucketOptions withBucketAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(S3Headers.CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutObjectOptions withAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutObjectOptions withAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */ public PutBucketOptions withBucketAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(S3Headers.CANNED_ACL, acl.toString()); return this; }