public ClientVpnEndpointStatus withCode(ClientVpnEndpointStatusCode code) {
        this.code = code.toString();
        return this;
    }
<p>
The state of the Client VPN endpoint. Possible states include:
</p>
<ul>
<li>
<p>
<code>pending-associate</code> - The Client VPN endpoint has been created but no target networks have been
associated. The Client VPN endpoint cannot accept connections.
</p>
</li>
<li>
<p>
<code>available</code> - The Client VPN endpoint has been created and a target network has been associated. The
Client VPN endpoint can accept connections.
</p>
</li>
<li>
<p>
<code>deleting</code> - The Client VPN endpoint is being deleted. The Client VPN endpoint cannot accept
connections.
</p>
</li>
<li>
<p>
<code>deleted</code> - The Client VPN endpoint has been deleted. The Client VPN endpoint cannot accept
connections.
</p>
</li>
</ul>

@param code
       The state of the Client VPN endpoint. Possible states include:</p>
       <ul>
       <li>
       <p>
       <code>pending-associate</code> - The Client VPN endpoint has been created but no target networks have been
       associated. The Client VPN endpoint cannot accept connections.
       </p>
       </li>
       <li>
       <p>
       <code>available</code> - The Client VPN endpoint has been created and a target network has been
       associated. The Client VPN endpoint can accept connections.
       </p>
       </li>
       <li>
       <p>
       <code>deleting</code> - The Client VPN endpoint is being deleted. The Client VPN endpoint cannot accept
       connections.
       </p>
       </li>
       <li>
       <p>
       <code>deleted</code> - The Client VPN endpoint has been deleted. The Client VPN endpoint cannot accept
       connections.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ClientVpnEndpointStatusCode
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ClientVpnEndpointStatus.java