code: public PagedList<JobResponseInner> listJobs(final String resourceGroupName, final String resourceName) {
          ServiceResponse<Page<JobResponseInner>> response = listJobsSinglePageAsync(resourceGroupName, resourceName).toBlocking().single();
          return new PagedList<JobResponseInner>(response.body()) {
              @Override
              public Page<JobResponseInner> nextPage(String nextPageLink) {
                  return listJobsNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
  Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
  
  @param resourceGroupName The name of the resource group that contains the IoT hub.
  @param resourceName The name of the IoT hub.
  @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;JobResponseInner&gt; object if successful.