public CreateVirtualRouterRequest withTags(java.util.Collection<TagRef> tags) {
        setTags(tags);
        return this;
    }
<p>
Optional metadata that you can apply to the virtual router to assist with categorization and organization. Each
tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character
length of 128 characters, and tag values can have a maximum length of 256 characters.
</p>

@param tags
       Optional metadata that you can apply to the virtual router to assist with categorization and organization.
       Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum
       character length of 128 characters, and tag values can have a maximum length of 256 characters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/CreateVirtualRouterRequest.java