public ListInstancesResult withInstances(java.util.Collection<InstanceSummary> instances) {
        setInstances(instances);
        return this;
    }
<p>
Summary information about the instances that are associated with the specified service.
</p>

@param instances
       Summary information about the instances that are associated with the specified service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-servicediscovery/src/main/java/com/amazonaws/services/servicediscovery/model/ListInstancesResult.java