public void setSpec(VirtualServiceSpec spec) {
        this.spec = spec;
    }
<p>
The virtual service specification to apply.
</p>

@param spec
       The virtual service specification to apply.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/CreateVirtualServiceRequest.java