public void setTags(java.util.Collection<Tag> tags) {
        if (tags == null) {
            this.tags = null;
            return;
        }

        this.tags = new java.util.ArrayList<Tag>(tags);
    }
<p>
A list of tags to associate with the component. You can use <a
href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_Search.html">Search</a> API to search on the
tags.
</p>

@param tags
       A list of tags to associate with the component. You can use <a
       href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_Search.html">Search</a> API to search
       on the tags.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/CreateTrialComponentRequest.java