public Endpoint withStateReason(String stateReason) {
        setStateReason(stateReason);
        return this;
    }
<p>
The reason the endpoint is in its current state.
</p>

@param stateReason
       The reason the endpoint is in its current state.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/Endpoint.java