Same as {@link #tagged(Map)}, but takes a variadic list
of arguments.

@see #tagged(Map)
@param pairs An even list of strings acting as key-value pairs.
@return A newly created metric name with the specified tags associated
with it.
339349
public MetricName tagged(String... pairs) {
        if (pairs == null) {
            return this;
        }

        if (pairs.length % 2 != 0) {
            throw new IllegalArgumentException("Argument count must be even");
        }

        final Map<String, String> add = new HashMap<>();

        for (int i = 0; i < pairs.length; i += 2) {
            add.put(pairs[i], pairs[i+1]);
        }

        return tagged(add);
    }
36436
public CreateCoreDefinitionRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
120504
public TagProjectResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
570818
def tags
      tags = []
      http_get('/metrics/').map do |g|
        next if g['tags'].nil?

        g['tags'].map do |k, v|
          tags << { k => v }
        end
      end
      tags.uniq!
    end
1321851
public CreateGroupResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
451059
public DefinitionInformation withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
189368
public AffectedEntity withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
62089
public DescribeInputResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
512747
public CreateRobotResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
868980
public synchronized Map<String, String> getTags() {
        if (tags == null || tags.isEmpty()) {
            return Collections.emptyMap();
        }

        return Collections.unmodifiableMap(tags);
    }
889904
public CreateResourceDefinitionRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
743100
public MetricName withTag(String key, String value) {
		return name(name).tags(tags).tag(key, value).build();
	}
544391
public SegmentResponse withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
181566
public CreateFunctionDefinitionRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
611234
public static BasicTagList copyOf(Iterable<String> tags) {
    SmallTagMap.Builder builder = SmallTagMap.builder();
    for (String tag : tags) {
      builder.add(Tags.parseTag(tag));
    }
    return new BasicTagList(builder.result());
  }
706432
public static String constructHadoopTags(Props props, String[] keys) {
    String[] keysAndValues = new String[keys.length];
    for (int i = 0; i < keys.length; i++) {
      if (props.containsKey(keys[i])) {
        keysAndValues[i] = keys[i] + ":" + props.get(keys[i]);
      }
    }
    Joiner joiner = Joiner.on(',').skipNulls();
    return joiner.join(keysAndValues);
  }
245009
public GetSubscriptionDefinitionResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }