code: public void setDirectConnectGatewayAttachments(java.util.Collection<DirectConnectGatewayAttachment> directConnectGatewayAttachments) {
          if (directConnectGatewayAttachments == null) {
              this.directConnectGatewayAttachments = null;
              return;
          }
  
          this.directConnectGatewayAttachments = new com.amazonaws.internal.SdkInternalList<DirectConnectGatewayAttachment>(directConnectGatewayAttachments);
      }
docs: <p>
  The attachments.
  </p>
  
  @param directConnectGatewayAttachments
  The attachments.