public Boolean getBlockPublicPolicy() {
        return this.blockPublicPolicy;
    }
<p>
Specifies whether Amazon S3 should block public bucket policies for buckets in this account. 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>
<p>
This property is not supported for Amazon S3 on Outposts.
</p>

@return Specifies whether Amazon S3 should block public bucket policies for buckets in this account. 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>
        <p>
        This property is not supported for Amazon S3 on Outposts.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/PublicAccessBlockConfiguration.java