public PagedList<SiteInner> beginSuspend(final String resourceGroupName, final String name) {
        ServiceResponse<Page<SiteInner>> response = beginSuspendSinglePageAsync(resourceGroupName, name).toBlocking().single();
        return new PagedList<SiteInner>(response.body()) {
            @Override
            public Page<SiteInner> nextPage(String nextPageLink) {
                return beginSuspendNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < SiteInner > beginSuspend ( final String resourceGroupName , final String name ) { ServiceResponse < Page < SiteInner > > response = beginSuspendSinglePageAsync ( resourceGroupName , name ) . toBlocking ( ) . single ( ) ; return new PagedList < SiteInner > ( response . body ( ) ) { @ Override public Page < SiteInner > nextPage ( String nextPageLink ) { return beginSuspendNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Suspend an App Service Environment.
Suspend 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;SiteInner&gt; object if successful.