public void setDirectConnectGatewayAttachments(java.util.Collection<DirectConnectGatewayAttachment> directConnectGatewayAttachments) {
        if (directConnectGatewayAttachments == null) {
            this.directConnectGatewayAttachments = null;
            return;
        }

        this.directConnectGatewayAttachments = new com.amazonaws.internal.SdkInternalList<DirectConnectGatewayAttachment>(directConnectGatewayAttachments);
    }
<p>
The attachments.
</p>

@param directConnectGatewayAttachments
       The attachments.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/DescribeDirectConnectGatewayAttachmentsResult.java