public BucketPublicAccess getPublicAccess() {
        return this.publicAccess;
    }
<p>
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to
the bucket, and provides information about those settings.
</p>

@return Specifies whether the bucket is publicly accessible due to the combination of permissions settings that
        apply to the bucket, and provides information about those settings.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/BucketMetadata.java