public PublicAccessBlockConfiguration withBlockPublicPolicy(Boolean blockPublicPolicy) {
        setBlockPublicPolicy(blockPublicPolicy);
        return this;
    }
<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>

@param blockPublicPolicy
       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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/PublicAccessBlockConfiguration.java