public PagedList<EventHubConsumerGroupInfoInner> listEventHubConsumerGroupsNext(final String nextPageLink) {
        ServiceResponse<Page<EventHubConsumerGroupInfoInner>> response = listEventHubConsumerGroupsNextSinglePageAsync(nextPageLink).toBlocking().single();
        return new PagedList<EventHubConsumerGroupInfoInner>(response.body()) {
            @Override
            public Page<EventHubConsumerGroupInfoInner> nextPage(String nextPageLink) {
                return listEventHubConsumerGroupsNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < EventHubConsumerGroupInfoInner > listEventHubConsumerGroupsNext ( final String nextPageLink ) { ServiceResponse < Page < EventHubConsumerGroupInfoInner > > response = listEventHubConsumerGroupsNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) ; return new PagedList < EventHubConsumerGroupInfoInner > ( response . body ( ) ) { @ Override public Page < EventHubConsumerGroupInfoInner > nextPage ( String nextPageLink ) { return listEventHubConsumerGroupsNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
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 nextPageLink The NextLink from the previous successful call to List operation.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws ErrorDetailsException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the PagedList&lt;EventHubConsumerGroupInfoInner&gt; object if successful.