public DirectConnectGatewayAttachment withAttachmentType(DirectConnectGatewayAttachmentType attachmentType) {
        this.attachmentType = attachmentType.toString();
        return this;
    }
<p>
The type of attachment.
</p>

@param attachmentType
       The type of attachment.
@return Returns a reference to this object so that method calls can be chained together.
@see DirectConnectGatewayAttachmentType
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/DirectConnectGatewayAttachment.java