public SessionStatus withState(SessionState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the session. A description of each state follows.
</p>
<p>
<code>CREATING</code> - The session is being started, including acquiring resources.
</p>
<p>
<code>CREATED</code> - The session has been started.
</p>
<p>
<code>IDLE</code> - The session is able to accept a calculation.
</p>
<p>
<code>BUSY</code> - The session is processing another task and is unable to accept a calculation.
</p>
<p>
<code>TERMINATING</code> - The session is in the process of shutting down.
</p>
<p>
<code>TERMINATED</code> - The session and its resources are no longer running.
</p>
<p>
<code>DEGRADED</code> - The session has no healthy coordinators.
</p>
<p>
<code>FAILED</code> - Due to a failure, the session and its resources are no longer running.
</p>

@param state
       The state of the session. A description of each state follows.</p>
       <p>
       <code>CREATING</code> - The session is being started, including acquiring resources.
       </p>
       <p>
       <code>CREATED</code> - The session has been started.
       </p>
       <p>
       <code>IDLE</code> - The session is able to accept a calculation.
       </p>
       <p>
       <code>BUSY</code> - The session is processing another task and is unable to accept a calculation.
       </p>
       <p>
       <code>TERMINATING</code> - The session is in the process of shutting down.
       </p>
       <p>
       <code>TERMINATED</code> - The session and its resources are no longer running.
       </p>
       <p>
       <code>DEGRADED</code> - The session has no healthy coordinators.
       </p>
       <p>
       <code>FAILED</code> - Due to a failure, the session and its resources are no longer running.
@return Returns a reference to this object so that method calls can be chained together.
@see SessionState
aws-java-sdk-athena/src/main/java/com/amazonaws/services/athena/model/SessionStatus.java