Sets the tags for the HTTP message.

@param tags the new tags.
@throws IllegalArgumentException if the given parameter is {@code null}.
@since 2.7.0
@see #addTag(String)
@see #deleteTag(String)
324499
public void setTags(List<String> tags) {
		if (tags == null) {
			throw new IllegalArgumentException("Parameter tags must not be null.");
		}

		for (String tag : tags) {
			if (!this.tags.contains(tag)) {
				insertTagDb(tag);
			}
		}

		for (String tag : this.tags) {
			if (!tags.contains(tag)) {
				deleteTagDb(tag);
			}
		}

		this.tags = new ArrayList<>(tags);
		notifyEvent(HistoryReferenceEventPublisher.EVENT_TAGS_SET);
	}
1236847
public void setTags(java.util.Collection<java.util.Map<String, String>> tags) {
        if (tags == null) {
            this.tags = null;
            return;
        }

        this.tags = new java.util.ArrayList<java.util.Map<String, String>>(tags);
    }
451059
public DefinitionInformation withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1015736
public void setTag(String tag) throws IllegalArgumentException {
		if (tag == null
				|| (tag != null && (tag.length() < 1 || tag.length() > 32))) {
			throw new IllegalArgumentException(
					"The tag must not be null, the length between 1..32");
		}

		this.tag = tag;
	}
1122128
public ListTriggersRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1027932
public void setRemoveTags(java.util.Collection<String> removeTags) {
        if (removeTags == null) {
            this.removeTags = null;
            return;
        }

        this.removeTags = new java.util.ArrayList<String>(removeTags);
    }
872408
@SuppressWarnings("unchecked")
    public T addTag(String tag) {
        if (this.tags_ == null) {
            tags_ = new ArrayList<>();
        }
        this.tags_.add(tag);
        return (T) this;
    }
544391
public SegmentResponse withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
883753
public MetadataBuilder setTags(List<String> tags)
    {
        if (tags == null)
            this.tags = new HashSet<>();
        else
            this.tags = Collections.unmodifiableSet(new HashSet<>(tags));

        return this;
    }
62843
public CreateNewNoteIntentBuilder addTags(@Nullable ArrayList<String> tags) {
        ArrayList<String> list = mArgs.getStringArrayList(EvernoteIntent.EXTRA_TAG_NAME_LIST);
        if (list == null) {
            list = tags;

        } else if (tags != null) {
            list.addAll(tags);
        }

        return setTags(list);
    }
1223118
public InputSecurityGroup withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
74892
public CreateInputSecurityGroupRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1298785
@SuppressWarnings("unchecked")
    public T addTags(List<String> tags) {
        if (this.tags_ == null) {
            tags_ = new ArrayList<>();
        }
        this.tags_.addAll(tags);
        return (T) this;
    }
1015178
public TagLogGroupRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
999245
public CreateConfigurationRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
331775
public CreateLogGroupRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
670398
public ResourceTags withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }