public S3Location withCannedACL(CannedAccessControlList cannedACL) {
        setCannedACL(cannedACL == null ? null : cannedACL.toString());
        return this;
    }
Sets the canned ACL to apply to the restore results.

@param cannedACL The new cannedACL value.
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Location.java