public UploadServerCertificateRequest 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>
A list of tags that you want to attach to the new IAM server certificate resource. Each tag consists of a key
name and an associated value. For more information about tagging, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM resources</a> in the <i>IAM User
Guide</i>.
</p>
<note>
<p>
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request
fails and the resource is not created.
</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
       A list of tags that you want to attach to the new IAM server certificate resource. Each tag consists of a
       key name and an associated value. For more information about tagging, see <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM resources</a> in the
       <i>IAM User Guide</i>.</p> <note>
       <p>
       If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire
       request fails and the resource is not created.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/UploadServerCertificateRequest.java