public VirtualServiceData withSpec(VirtualServiceSpec spec) {
        setSpec(spec);
        return this;
    }
<p>
The specifications of the virtual service.
</p>

@param spec
       The specifications of the virtual service.
@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/VirtualServiceData.java