public EvaluateOnExit withOnStatusReason(String onStatusReason) {
        setOnStatusReason(onStatusReason);
        return this;
    }
<p>
Contains a glob pattern to match against the <code>StatusReason</code> returned for a job. The pattern can
contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces
(including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs
to be an exact match.
</p>

@param onStatusReason
       Contains a glob pattern to match against the <code>StatusReason</code> returned for a job. The pattern can
       contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces
       (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the
       string needs to be an exact match.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/EvaluateOnExit.java