public S3Action withCannedAcl(String cannedAcl) {
        setCannedAcl(cannedAcl);
        return this;
    }
<p>
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information,
see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl">S3 canned ACLs</a>.
</p>

@param cannedAcl
       The Amazon S3 canned ACL that controls access to the object identified by the object key. For more
       information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl">S3
       canned ACLs</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see CannedAccessControlList
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/S3Action.java