public DescribeSessionsRequest withState(String state) {
        setState(state);
        return this;
    }
<p>
The session status to retrieve a list of sessions for. For example, "Active".
</p>

@param state
       The session status to retrieve a list of sessions for. For example, "Active".
@return Returns a reference to this object so that method calls can be chained together.
@see SessionState
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/DescribeSessionsRequest.java