public static Set convertTagMapIntoSet()

in aws-codeguruprofiler-profilinggroup/src/main/java/software/amazon/codeguruprofiler/profilinggroup/TagHelper.java [25:32]


    public static Set<Tag> convertTagMapIntoSet(Map<String, String> tags) {
        return tags.entrySet()
                   .stream()
                   .map(tag ->
                            Tag.builder().key(tag.getKey()).value(tag.getValue()).build()
                   )
                   .collect(Collectors.toSet());
    }