public Boolean getBlockPublicPolicy() {
        return blockPublicPolicy;
    }
<p>
Returns whether Amazon S3 should block public bucket policies for this bucket. Setting this element to
<code>TRUE</code> causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows
public access.
</p>
<p>
Enabling this setting doesn't affect existing bucket policies.
</p>
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/PublicAccessBlockConfiguration.java