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

        this.tags = new java.util.ArrayList<TagListEntry>(tags);
    }
<p>
Specifies the tags that you want to apply to your task.
</p>
<p>
<i>Tags</i> are key-value pairs that help you manage, filter, and search for your DataSync resources.
</p>

@param tags
       Specifies the tags that you want to apply to your task.</p>
       <p>
       <i>Tags</i> are key-value pairs that help you manage, filter, and search for your DataSync resources.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/CreateTaskRequest.java