public PagedList<AlertInner> listByDataBoxEdgeDeviceNext(final String nextPageLink) {
        ServiceResponse<Page<AlertInner>> response = listByDataBoxEdgeDeviceNextSinglePageAsync(nextPageLink).toBlocking().single();
        return new PagedList<AlertInner>(response.body()) {
            @Override
            public Page<AlertInner> nextPage(String nextPageLink) {
                return listByDataBoxEdgeDeviceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < AlertInner > listByDataBoxEdgeDeviceNext ( final String nextPageLink ) { ServiceResponse < Page < AlertInner > > response = listByDataBoxEdgeDeviceNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) ; return new PagedList < AlertInner > ( response . body ( ) ) { @ Override public Page < AlertInner > nextPage ( String nextPageLink ) { return listByDataBoxEdgeDeviceNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Gets all the alerts for a data box edge/gateway device.

@param nextPageLink The NextLink from the previous successful call to List operation.
@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;AlertInner&gt; object if successful.