public TagResourceRequest withTags(java.util.Collection<Tag> tags) {
        setTags(tags);
        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>

@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