public ListReplaysRequest withState(ReplayState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the replay.
</p>

@param state
       The state of the replay.
@return Returns a reference to this object so that method calls can be chained together.
@see ReplayState
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/ListReplaysRequest.java