code: public Observable<ServiceResponse<Page<EventHubConsumerGroupInfoInner>>> listEventHubConsumerGroupsWithServiceResponseAsync(final String resourceGroupName, final String resourceName, final String eventHubEndpointName) {
          return listEventHubConsumerGroupsSinglePageAsync(resourceGroupName, resourceName, eventHubEndpointName)
              .concatMap(new Func1<ServiceResponse<Page<EventHubConsumerGroupInfoInner>>, Observable<ServiceResponse<Page<EventHubConsumerGroupInfoInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<EventHubConsumerGroupInfoInner>>> call(ServiceResponse<Page<EventHubConsumerGroupInfoInner>> page) {
                      String nextPageLink = page.body().nextPageLink();
                      if (nextPageLink == null) {
                          return Observable.just(page);
                      }
                      return Observable.just(page).concatWith(listEventHubConsumerGroupsNextWithServiceResponseAsync(nextPageLink));
                  }
              });
      }
docs: Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
  Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
  
  @param resourceGroupName The name of the resource group that contains the IoT hub.
  @param resourceName The name of the IoT hub.
  @param eventHubEndpointName The name of the Event Hub-compatible endpoint.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;EventHubConsumerGroupInfoInner&gt; object