code: public EventHubConsumerGroupInfoInner getEventHubConsumerGroup(String resourceGroupName, String resourceName, String eventHubEndpointName, String name) {
          return getEventHubConsumerGroupWithServiceResponseAsync(resourceGroupName, resourceName, eventHubEndpointName, name).toBlocking().single().body();
      }
docs: Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
  Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for 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 in the IoT hub.
  @param name The name of the consumer group to retrieve.
  @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 EventHubConsumerGroupInfoInner object if successful.