public ComplianceItem withSeverity(ComplianceSeverity severity) {
        this.severity = severity.toString();
        return this;
    }
<p>
The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low,
Informational, Unspecified.
</p>

@param severity
       The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low,
       Informational, Unspecified.
@return Returns a reference to this object so that method calls can be chained together.
@see ComplianceSeverity
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ComplianceItem.java