public NacosConfig addTag()

in edas-demo/config-demo/apollo-migration/src/main/java/com/alibabacloud/edas/tool/model/NacosConfig.java [20:40]


    public NacosConfig addTag(String tag) {
        if (Tags == null) {
            Tags= new ArrayList<>(2);
            Tags.add(tag);

            return this;
        }

        if (Tags.contains(tag)) {
            return this;
        }

        if (Tags.size() == 5) {
            System.out.println("Warning: ignore tagged " +
                    "this config as tags reached the limit(5), " + DataId);
            return this;
        }

        Tags.add(tag);
        return this;
    }