public CreateHyperParameterTuningJobRequest 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 array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways,
for example, by purpose, owner, or environment. For more information, see <a
href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services Resources</a>.
</p>
<p>
Tags that you specify for the tuning job are also added to all training jobs that the tuning job launches.
</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 array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in
       different ways, for example, by purpose, owner, or environment. For more information, see <a
       href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services
       Resources</a>.</p>
       <p>
       Tags that you specify for the tuning job are also added to all training jobs that the tuning job launches.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/CreateHyperParameterTuningJobRequest.java