public S3PublicAccessBlockConfiguration withRestrictPublicBuckets(Boolean restrictPublicBuckets) {
        setRestrictPublicBuckets(restrictPublicBuckets);
        return this;
    }
<p>
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
</p>

@param restrictPublicBuckets
       Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/S3PublicAccessBlockConfiguration.java