public ValidateStateMachineDefinitionDiagnostic withSeverity(String severity) {
        setSeverity(severity);
        return this;
    }
<p>
A value of <code>ERROR</code> means that you cannot create or update a state machine with this definition.
</p>

@param severity
       A value of <code>ERROR</code> means that you cannot create or update a state machine with this definition.
@return Returns a reference to this object so that method calls can be chained together.
@see ValidateStateMachineDefinitionSeverity
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/ValidateStateMachineDefinitionDiagnostic.java