Adds a tag to the resource.
@param key the key for the tag
@param value the value for the tag
@return the next stage of the definition/update
194322
@SuppressWarnings("unchecked")
    public final FluentModelImplT withTag(String key, String value) {
        if (this.inner().getTags() == null) {
            this.inner().withTags(new HashMap<String, String>());
        }
        this.inner().getTags().put(key, value);
        return (FluentModelImplT) this;
    }
7180
public static StreamSpecifier tag(String key, String value) {
    checkValidKey(key);
    checkNotNull(value);
    return new StreamSpecifier("m:" + key + ":" + value);
  }
429509
public static Tag newTag(String key, String value) {
    Tag newTag = new BasicTag(intern(key), intern(value));
    return intern(newTag);
  }
782571
def add_tag(self, name, value):
        

        self.tags.append(Tag(name, value))
626722
public RuntimeParameter addParameter(String key, String value)
    {
        RuntimeParameter jp = new RuntimeParameter();
        jp.setJi(this.getId());
        jp.setKey(key);
        jp.setValue(value);
        return jp;
    }
195375
public T put(YamlNode key, boolean value) {
        return put(key, getNodeFactory().booleanNode(value));
    }
1354115
public TaskResult add(String key, Serializable value) {
    mBundle.putSerializable(key, value);
    return this;
  }
334101
public String put(final String key, final String Value) {
        return parameters.put(key, Value);
    }
1122704
public void add(String key, Object value) {
    validFieldName(key);
    ObjectFieldOperation op = OperationBuilder.gBuilder.create(OperationBuilder.OperationType.Add, key, value);
    addNewOperation(op);
  }
1286248
private void addElement(String key, String value) {
        this.num_items++;
        List<String> vals = this.values.get(key);
        if (null == vals) {
            vals = new LinkedList<String>();
        }
        if (null == value) {
            vals.add("\"\"");
        } else {
            vals.add(value);
        }
        this.values.put(key, vals);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "addElement: " + key + "=" + value + " num: " + this.num_items);
        }
    }
1068562
public static Tag create(TagKey key, TagValue value, TagMetadata tagMetadata) {
    return new AutoValue_Tag(key, value, tagMetadata);
  }
197309
public TaskResult add(String key, String[] value) {
    mBundle.putStringArray(key, value);
    return this;
  }
144003
private static final TagValue createTagValue(TagKey key, String value)
      throws TagContextDeserializationException {
    try {
      return TagValue.create(value);
    } catch (IllegalArgumentException e) {
      throw new TagContextDeserializationException(
          "Invalid tag value for key " + key + ": " + value, e);
    }
  }
854905
public void add(String name, Map<?, ?> value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
1101968
public Parameters append(String key, String value) {
        if (nameValuePairs == null) {
            nameValuePairs = new ArrayList<NameValuePair>();
        }
        nameValuePairs.add(new BasicNameValuePair(key, value));
        return this;
    }
414706
public void putTag(Tag tag, String value) {
    if (value != null) {
      mValues.put(tag, sanitizeString(value));
    }
  }
633168
public void addProperty(String key, String value) {
        if (null == properties) {
            properties = new HashMap<>();
        }
        properties.put(key, value);
    }