public PagedList<StampCapacityInner> listCapacities(final String resourceGroupName, final String name) {
        ServiceResponse<Page<StampCapacityInner>> response = listCapacitiesSinglePageAsync(resourceGroupName, name).toBlocking().single();
        return new PagedList<StampCapacityInner>(response.body()) {
            @Override
            public Page<StampCapacityInner> nextPage(String nextPageLink) {
                return listCapacitiesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < StampCapacityInner > listCapacities ( final String resourceGroupName , final String name ) { ServiceResponse < Page < StampCapacityInner > > response = listCapacitiesSinglePageAsync ( resourceGroupName , name ) . toBlocking ( ) . single ( ) ; return new PagedList < StampCapacityInner > ( response . body ( ) ) { @ Override public Page < StampCapacityInner > nextPage ( String nextPageLink ) { return listCapacitiesNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param name Name of the App Service Environment.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException 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;StampCapacityInner&gt; object if successful.