public Observable<ServiceResponse<Page<IotHubSkuDescriptionInner>>> getValidSkusWithServiceResponseAsync(final String resourceGroupName, final String resourceName) {
        return getValidSkusSinglePageAsync(resourceGroupName, resourceName)
            .concatMap(new Func1<ServiceResponse<Page<IotHubSkuDescriptionInner>>, Observable<ServiceResponse<Page<IotHubSkuDescriptionInner>>>>() {
                @Override
                public Observable<ServiceResponse<Page<IotHubSkuDescriptionInner>>> call(ServiceResponse<Page<IotHubSkuDescriptionInner>> page) {
                    String nextPageLink = page.body().nextPageLink();
                    if (nextPageLink == null) {
                        return Observable.just(page);
                    }
                    return Observable.just(page).concatWith(getValidSkusNextWithServiceResponseAsync(nextPageLink));
                }
            });
    }
public Observable < ServiceResponse < Page < IotHubSkuDescriptionInner > > > getValidSkusWithServiceResponseAsync ( final String resourceGroupName , final String resourceName ) { return getValidSkusSinglePageAsync ( resourceGroupName , resourceName ) . concatMap ( new Func1 < ServiceResponse < Page < IotHubSkuDescriptionInner > > , Observable < ServiceResponse < Page < IotHubSkuDescriptionInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < IotHubSkuDescriptionInner > > > call ( ServiceResponse < Page < IotHubSkuDescriptionInner > > page ) { String nextPageLink = page . body ( ) . nextPageLink ( ) ; if ( nextPageLink == null ) { return Observable . just ( page ) ; } return Observable . just ( page ) . concatWith ( getValidSkusNextWithServiceResponseAsync ( nextPageLink ) ) ; } } ) ; }
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
@return the observable to the PagedList&lt;IotHubSkuDescriptionInner&gt; object