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

        this.tags = new java.util.ArrayList<TagRef>(tags);
    }
<p>
Optional metadata that you can apply to the virtual service 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 service 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.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/CreateVirtualServiceRequest.java