public ListInstancesRequest withServiceId(String serviceId) {
        setServiceId(serviceId);
        return this;
    }
<p>
The ID of the service that you want to list instances for.
</p>

@param serviceId
       The ID of the service that you want to list instances for.
@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/ListInstancesRequest.java