public CompositeAlarm withStateReason(String stateReason) {
        setStateReason(stateReason);
        return this;
    }
<p>
An explanation for the alarm state, in text format.
</p>

@param stateReason
       An explanation for the alarm state, in text format.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/CompositeAlarm.java