class QueryVnfcs extends CatalogQuery {

    @Override
    public String JSON2(boolean isArray, boolean isEmbed) {
        StringBuilder sb = new StringBuilder();
        if (!isEmbed && isArray) {
            sb.append("{");
        }

        if (isArray) {
            sb.append("\"vnfcs\": [");
        }

        Map<String, String> valueMap = new HashMap<>();
        String sep = "";
        boolean first = true;

        for (VnfcCustomization o : vnfcCustomizations) {
            if (first)
                sb.append("\n");
            first = false;

            put(valueMap, "MODEL_NAME", o.getModelName());
            put(valueMap, "MODEL_UUID", o.getModelUUID());
            put(valueMap, "MODEL_INVARIANT_ID", o.getModelInvariantUUID());
            put(valueMap, "MODEL_VERSION", o.getModelVersion());
            put(valueMap, "MODEL_CUSTOMIZATION_UUID", o.getModelCustomizationUUID());

            if (isJSONValid(o.getResourceInput())) {
                put(valueMap, "RESOURCE_INPUT", o.getResourceInput());
            }
            sb.append(sep).append(this.setTemplate(TEMPLATE, valueMap));
            sep = ",\n";
        }
        if (!first)
            sb.append("\n");
        if (isArray)
            sb.append("]");
        if (!isEmbed && isArray)
            sb.append("}");
        return sb.toString();
    }

    public  QueryVnfcs();
    public  QueryVnfcs(List<VnfcCustomization> vnfcCustomizations);

}