public UpdateConnectionResult withConnectionState(ConnectionState connectionState) {
        this.connectionState = connectionState.toString();
        return this;
    }
<p>
The state of the connection. The following are the possible values:
</p>
<ul>
<li>
<p>
<code>ordering</code>: The initial state of a hosted connection provisioned on an interconnect. The connection
stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
</p>
</li>
<li>
<p>
<code>requested</code>: The initial state of a standard connection. The connection stays in the requested state
until the Letter of Authorization (LOA) is sent to the customer.
</p>
</li>
<li>
<p>
<code>pending</code>: The connection has been approved and is being initialized.
</p>
</li>
<li>
<p>
<code>available</code>: The network link is up and the connection is ready for use.
</p>
</li>
<li>
<p>
<code>down</code>: The network link is down.
</p>
</li>
<li>
<p>
<code>deleting</code>: The connection is being deleted.
</p>
</li>
<li>
<p>
<code>deleted</code>: The connection has been deleted.
</p>
</li>
<li>
<p>
<code>rejected</code>: A hosted connection in the <code>ordering</code> state enters the <code>rejected</code>
state if it is deleted by the customer.
</p>
</li>
<li>
<p>
<code>unknown</code>: The state of the connection is not available.
</p>
</li>
</ul>

@param connectionState
       The state of the connection. The following are the possible values:</p>
       <ul>
       <li>
       <p>
       <code>ordering</code>: The initial state of a hosted connection provisioned on an interconnect. The
       connection stays in the ordering state until the owner of the hosted connection confirms or declines the
       connection order.
       </p>
       </li>
       <li>
       <p>
       <code>requested</code>: The initial state of a standard connection. The connection stays in the requested
       state until the Letter of Authorization (LOA) is sent to the customer.
       </p>
       </li>
       <li>
       <p>
       <code>pending</code>: The connection has been approved and is being initialized.
       </p>
       </li>
       <li>
       <p>
       <code>available</code>: The network link is up and the connection is ready for use.
       </p>
       </li>
       <li>
       <p>
       <code>down</code>: The network link is down.
       </p>
       </li>
       <li>
       <p>
       <code>deleting</code>: The connection is being deleted.
       </p>
       </li>
       <li>
       <p>
       <code>deleted</code>: The connection has been deleted.
       </p>
       </li>
       <li>
       <p>
       <code>rejected</code>: A hosted connection in the <code>ordering</code> state enters the
       <code>rejected</code> state if it is deleted by the customer.
       </p>
       </li>
       <li>
       <p>
       <code>unknown</code>: The state of the connection is not available.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ConnectionState
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/UpdateConnectionResult.java