public void setSpec(VirtualRouterSpec spec) {
        this.spec = spec;
    }
<p>
The new virtual router specification to apply. This overwrites the existing data.
</p>

@param spec
       The new virtual router specification to apply. This overwrites the existing data.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/UpdateVirtualRouterRequest.java