public void setBlockPublicAcls(Boolean blockPublicAcls) {
        this.blockPublicAcls = blockPublicAcls;
    }
<p>
Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this
bucket. Setting this element to <code>TRUE</code> causes the following behavior:
</p>
<ul>
<li>
<p>
PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.
</p>
</li>
<li>
<p>
PUT Object calls fail if the request includes a public ACL.
</p>
</li>
<li>
<p>
PUT Bucket calls fail if the request includes a public ACL.
</p>
</li>
</ul>
<p>
Enabling this setting doesn't affect existing policies or ACLs.
</p>
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/PublicAccessBlockConfiguration.java