public SecurityHubConfiguration withPublishPolicyFindings(Boolean publishPolicyFindings) {
        setPublishPolicyFindings(publishPolicyFindings);
        return this;
    }
<p>
Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie
automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The
default value is true.
</p>

@param publishPolicyFindings
       Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie
       automatically publishes all new and updated policy findings that weren't suppressed by a findings filter.
       The default value is true.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/SecurityHubConfiguration.java