public Finding withSeverity(String severity) {
        setSeverity(severity);
        return this;
    }
<p>
The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on
severity levels, see <a
href="https://docs.aws.amazon.com/codeguru/latest/security-ug/findings-overview.html#severity-distribution"
>Finding severity</a> in the <i>Amazon CodeGuru Security User Guide</i>.
</p>

@param severity
       The severity of the finding. Severity can be critical, high, medium, low, or informational. For
       information on severity levels, see <a href=
       "https://docs.aws.amazon.com/codeguru/latest/security-ug/findings-overview.html#severity-distribution"
       >Finding severity</a> in the <i>Amazon CodeGuru Security User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see Severity
aws-java-sdk-codegurusecurity/src/main/java/com/amazonaws/services/codegurusecurity/model/Finding.java