public void setAttachmentState(String attachmentState) {
        this.attachmentState = attachmentState;
    }
<p>
The state of the attachment. The following are the possible values:
</p>
<ul>
<li>
<p>
<code>attaching</code>: The initial state after a virtual interface is created using the Direct Connect gateway.
</p>
</li>
<li>
<p>
<code>attached</code>: The Direct Connect gateway and virtual interface are attached and ready to pass traffic.
</p>
</li>
<li>
<p>
<code>detaching</code>: The initial state after calling <a>DeleteVirtualInterface</a>.
</p>
</li>
<li>
<p>
<code>detached</code>: The virtual interface is detached from the Direct Connect gateway. Traffic flow between
the Direct Connect gateway and virtual interface is stopped.
</p>
</li>
</ul>

@param attachmentState
       The state of the attachment. The following are the possible values:</p>
       <ul>
       <li>
       <p>
       <code>attaching</code>: The initial state after a virtual interface is created using the Direct Connect
       gateway.
       </p>
       </li>
       <li>
       <p>
       <code>attached</code>: The Direct Connect gateway and virtual interface are attached and ready to pass
       traffic.
       </p>
       </li>
       <li>
       <p>
       <code>detaching</code>: The initial state after calling <a>DeleteVirtualInterface</a>.
       </p>
       </li>
       <li>
       <p>
       <code>detached</code>: The virtual interface is detached from the Direct Connect gateway. Traffic flow
       between the Direct Connect gateway and virtual interface is stopped.
       </p>
       </li>
@see DirectConnectGatewayAttachmentState
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/DirectConnectGatewayAttachment.java