public CreateServiceTemplateVersionRequest 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 optional list of metadata items that you can associate with the Proton service template version. A tag is a
key-value pair.
</p>
<p>
For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton
resources and tagging</a> in the <i>Proton User Guide</i>.
</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 optional list of metadata items that you can associate with the Proton service template version. A tag
       is a key-value pair.</p>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a>
       in the <i>Proton User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/CreateServiceTemplateVersionRequest.java