pub fn attachment_state(
        &self,
    ) -> std::option::Option<&crate::model::DirectConnectGatewayAttachmentState> {
        self.attachment_state.as_ref()
    }
/// <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 <code>DeleteVirtualInterface</code>.</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>
The state of the attachment.
The state of the attachment .
pub fn attachment_state(
        &self,
    ) -> std::option::Option<&crate::model::DirectConnectGatewayAttachmentState> {
        self.attachment_state.as_ref()
    }
pub fn attachment_state ( & self , ) -> std :: option :: Option < & crate :: model :: DirectConnectGatewayAttachmentState > { self . attachment_state . as_ref ( ) }
<p>The state of the attachment.
<p > The state of the attachment .
&self
&self