public CreateAgentStatusRequest withState(AgentStatusState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the status.
</p>

@param state
       The state of the status.
@return Returns a reference to this object so that method calls can be chained together.
@see AgentStatusState
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusRequest.java