public Service withServiceRegistries(java.util.Collection<ServiceRegistry> serviceRegistries) {
        setServiceRegistries(serviceRegistries);
        return this;
    }
<p>
The details for the service discovery registries to assign to this service. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.
</p>

@param serviceRegistries
       The details for the service discovery registries to assign to this service. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service
       Discovery</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Service.java