public CreatePatchBaselineRequest withTags(Tag... tags) {
        if (this.tags == null) {
            setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length));
        }
        for (Tag ele : tags) {
            this.tags.add(ele);
        }
        return this;
    }
<p>
Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such
as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the
severity level of patches it specifies and the operating system family it applies to. In this case, you could
specify the following key-value pairs:
</p>
<ul>
<li>
<p>
<code>Key=PatchSeverity,Value=Critical</code>
</p>
</li>
<li>
<p>
<code>Key=OS,Value=Windows</code>
</p>
</li>
</ul>
<note>
<p>
To add tags to an existing patch baseline, use the <a>AddTagsToResource</a> operation.
</p>
</note>
<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
       Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different
       ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to
       identify the severity level of patches it specifies and the operating system family it applies to. In this
       case, you could specify the following key-value pairs:</p>
       <ul>
       <li>
       <p>
       <code>Key=PatchSeverity,Value=Critical</code>
       </p>
       </li>
       <li>
       <p>
       <code>Key=OS,Value=Windows</code>
       </p>
       </li>
       </ul>
       <note>
       <p>
       To add tags to an existing patch baseline, use the <a>AddTagsToResource</a> operation.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CreatePatchBaselineRequest.java