code: public PagedList<IotHubSkuDescriptionInner> getValidSkus(final String resourceGroupName, final String resourceName) {
          ServiceResponse<Page<IotHubSkuDescriptionInner>> response = getValidSkusSinglePageAsync(resourceGroupName, resourceName).toBlocking().single();
          return new PagedList<IotHubSkuDescriptionInner>(response.body()) {
              @Override
              public Page<IotHubSkuDescriptionInner> nextPage(String nextPageLink) {
                  return getValidSkusNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get the list of valid SKUs for an IoT hub.
  Get the list of valid SKUs 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.
  @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;IotHubSkuDescriptionInner&gt; object if successful.