public S3BucketConfiguration withBucketPolicy(String bucketPolicy) {
        setBucketPolicy(bucketPolicy);
        return this;
    }
<p>
The proposed bucket policy for the Amazon S3 bucket.
</p>

@param bucketPolicy
       The proposed bucket policy for the Amazon S3 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/S3BucketConfiguration.java