public TagResourceRequest withTags(Tag... tags) {
        if (this.tags == null) {
            setTags(new java.util.ArrayList<Tag>(tags.length));
        }
        for (Tag ele : tags) {
            this.tags.add(ele);
        }
        return this;
    }
<p>
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you
want to add or update. For example, suppose a container already has two tags (customer:CompanyA and
priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource,
you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags:
customer:CompanyA, priority:Medium, and type:Contract.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
existing values.
</p>

@param tags
       An array of key:value pairs that you want to add to the container. You need to specify only the tags that
       you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and
       priority:High). You want to change the priority tag and also add a third tag (type:Contract). For
       TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your
       container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediastore/src/main/java/com/amazonaws/services/mediastore/model/TagResourceRequest.java