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

        this.tags = new java.util.ArrayList<Tag>(tags);
    }
<p>
The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and
an optional value, both of which you define. To learn more, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-tags"
>RunTask</a> in the Amazon ECS API Reference.
</p>

@param tags
       The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a
       key and an optional value, both of which you define. To learn more, see <a href=
       "https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-tags"
       >RunTask</a> in the Amazon ECS API Reference.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/EcsParameters.java