public Observable<ServiceResponse<Page<DetectorDefinitionInner>>> getSiteDetectorSlotNextWithServiceResponseAsync(final String nextPageLink) {
        return getSiteDetectorSlotNextSinglePageAsync(nextPageLink)
            .concatMap(new Func1<ServiceResponse<Page<DetectorDefinitionInner>>, Observable<ServiceResponse<Page<DetectorDefinitionInner>>>>() {
                @Override
                public Observable<ServiceResponse<Page<DetectorDefinitionInner>>> call(ServiceResponse<Page<DetectorDefinitionInner>> page) {
                    String nextPageLink = page.body().nextPageLink();
                    if (nextPageLink == null) {
                        return Observable.just(page);
                    }
                    return Observable.just(page).concatWith(getSiteDetectorSlotNextWithServiceResponseAsync(nextPageLink));
                }
            });
    }
public Observable < ServiceResponse < Page < DetectorDefinitionInner > > > getSiteDetectorSlotNextWithServiceResponseAsync ( final String nextPageLink ) { return getSiteDetectorSlotNextSinglePageAsync ( nextPageLink ) . concatMap ( new Func1 < ServiceResponse < Page < DetectorDefinitionInner > > , Observable < ServiceResponse < Page < DetectorDefinitionInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DetectorDefinitionInner > > > call ( ServiceResponse < Page < DetectorDefinitionInner > > page ) { String nextPageLink = page . body ( ) . nextPageLink ( ) ; if ( nextPageLink == null ) { return Observable . just ( page ) ; } return Observable . just ( page ) . concatWith ( getSiteDetectorSlotNextWithServiceResponseAsync ( nextPageLink ) ) ; } } ) ; }
Get Detector.
Get Detector.

@param nextPageLink The NextLink from the previous successful call to List operation.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PagedList&lt;DetectorDefinitionInner&gt; object