public CreateAgentRequest withTags(java.util.Collection<TagListEntry> tags) {
        setTags(tags);
        return this;
    }
<p>
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We
recommend creating at least one tag for your agent.
</p>

@param tags
       Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We
       recommend creating at least one tag for your agent.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/CreateAgentRequest.java