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>
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You
can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
</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
       Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type.
       You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-b2bi/src/main/java/com/amazonaws/services/b2bi/model/TagResourceRequest.java