Merges a new tag into an existing list of tags.
It will be either appended to the list or overwrite the value of an existing tag with the same key.
@param initialTags
@param changeTag
@return {@link List} of merged {@link Tag}s
176400
private List<Tag> mergeS3TagSet(List<Tag> initialTags, Tag changeTag) {
        Map<String, String> mergedTags = initialTags.stream().collect(Collectors.toMap(Tag::getKey, Tag::getValue));
        mergedTags.put(changeTag.getKey(), changeTag.getValue());
        return mergedTags.entrySet().stream().map(
                entry -> new Tag(entry.getKey(), entry.getValue())).collect(Collectors.toList());
    }
89555
public ListTagsForProjectResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
29840
private static String mergeTags(RoxableTest mAnnotation, RoxableTestClass cAnnotation) {
		List<String> tags = new ArrayList<>();
		
		if (mAnnotation != null) {
			tags.addAll(Arrays.asList(mAnnotation.tags()));
		}
		
		if (cAnnotation != null) {
			tags.addAll(Arrays.asList(cAnnotation.tags()));
		}

		return Arrays.toString(tags.toArray(new String[tags.size()]));
	}
626106
public DescribeSimulationApplicationResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1170938
public static Tags concat(@Nullable Iterable<? extends Tag> tags, @Nullable Iterable<Tag> otherTags) {
        return Tags.of(tags).and(otherTags);
    }
1033244
public ListTagsLogGroupResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1201833
public CreateTagsRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
836742
public synchronized Filter addTags(String... tags) {
    for(String tag : tags) {
      this.tags.add(tag);
    }
    return this;
  }
508255
public Tags and(@Nullable Tag... tags) {
        if (tags == null || tags.length == 0) {
            return this;
        }
        Tag[] newTags = new Tag[last + tags.length];
        System.arraycopy(this.tags, 0, newTags, 0, last);
        System.arraycopy(tags, 0, newTags, last, tags.length);
        return new Tags(newTags);
    }
631660
@NonNull
    public static Changes newInstance(@NonNull String affectedTable, @Nullable String... affectedTags) {
        checkNotNull(affectedTable, "Please specify affected table");
        return new Changes(singleton(affectedTable), nonNullSet(affectedTags));
    }
120504
public TagProjectResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
661470
public T withTags(String... tags) {
    for (int i = 0; i < tags.length; i += 2) {
      extraTags.add(new BasicTag(tags[i], tags[i + 1]));
    }
    return (T) this;
  }
1321851
public CreateGroupResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1217488
public Branch withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1352751
@SuppressWarnings("unchecked")
	public T tag(final String tag) {
		if (this.tags == null) {
			this.tags = new HashSet<>();
		}

		this.tags.add(tag);
		return (T) this;
	}
404528
public void setTags(java.util.Map<String, String> tags) {
        this.tags = tags == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>(tags);
    }
36436
public CreateCoreDefinitionRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }