public BucketLevelPermissions withBucketPolicy(BucketPolicy bucketPolicy) {
        setBucketPolicy(bucketPolicy);
        return this;
    }
<p>
Contains information on the bucket policies for the S3 bucket.
</p>

@param bucketPolicy
       Contains information on the bucket policies for the S3 bucket.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/BucketLevelPermissions.java