@Test public void test_translateToSdkTags_IfIsNull() { assertThat(translateToSdkTags(null)).isEmpty(); }
static List<Tag> translateToSdkTags(final Collection<software.amazon.cloudformation.stackset.Tag> tags) { if (CollectionUtils.isNullOrEmpty(tags)) return Collections.emptyList(); return tags.stream().map(tag -> Tag.builder() .key(tag.getKey()) .value(tag.getValue()) .build()) .collect(Collectors.toList()); }
PropertyTranslator { static List<Tag> translateToSdkTags(final Collection<software.amazon.cloudformation.stackset.Tag> tags) { if (CollectionUtils.isNullOrEmpty(tags)) return Collections.emptyList(); return tags.stream().map(tag -> Tag.builder() .key(tag.getKey()) .value(tag.getValue()) .build()) .collect(Collectors.toList()); } }
PropertyTranslator { static List<Tag> translateToSdkTags(final Collection<software.amazon.cloudformation.stackset.Tag> tags) { if (CollectionUtils.isNullOrEmpty(tags)) return Collections.emptyList(); return tags.stream().map(tag -> Tag.builder() .key(tag.getKey()) .value(tag.getValue()) .build()) .collect(Collectors.toList()); }  }
PropertyTranslator { static List<Tag> translateToSdkTags(final Collection<software.amazon.cloudformation.stackset.Tag> tags) { if (CollectionUtils.isNullOrEmpty(tags)) return Collections.emptyList(); return tags.stream().map(tag -> Tag.builder() .key(tag.getKey()) .value(tag.getValue()) .build()) .collect(Collectors.toList()); }  static software.amazon.cloudformation.stackset.AutoDeployment translateFromSdkAutoDeployment(
            final AutoDeployment autoDeployment); static AutoDeployment translateToSdkAutoDeployment(
            final software.amazon.cloudformation.stackset.AutoDeployment autoDeployment); static Set<software.amazon.cloudformation.stackset.Parameter> translateFromSdkParameters(
            final Collection<Parameter> parameters); static Set<software.amazon.cloudformation.stackset.Tag> translateFromSdkTags(final Collection<Tag> tags); static StackInstance translateToStackInstance(
            final boolean isSelfManaged,
            final StackInstanceSummary summary,
            final Collection<Parameter> parameters); }
PropertyTranslator { static List<Tag> translateToSdkTags(final Collection<software.amazon.cloudformation.stackset.Tag> tags) { if (CollectionUtils.isNullOrEmpty(tags)) return Collections.emptyList(); return tags.stream().map(tag -> Tag.builder() .key(tag.getKey()) .value(tag.getValue()) .build()) .collect(Collectors.toList()); }  static software.amazon.cloudformation.stackset.AutoDeployment translateFromSdkAutoDeployment(
            final AutoDeployment autoDeployment); static AutoDeployment translateToSdkAutoDeployment(
            final software.amazon.cloudformation.stackset.AutoDeployment autoDeployment); static Set<software.amazon.cloudformation.stackset.Parameter> translateFromSdkParameters(
            final Collection<Parameter> parameters); static Set<software.amazon.cloudformation.stackset.Tag> translateFromSdkTags(final Collection<Tag> tags); static StackInstance translateToStackInstance(
            final boolean isSelfManaged,
            final StackInstanceSummary summary,
            final Collection<Parameter> parameters);  }