public Observable<Page<JobTargetGroupInner>> listByAgentNextAsync(final String nextPageLink) {
        return listByAgentNextWithServiceResponseAsync(nextPageLink)
            .map(new Func1<ServiceResponse<Page<JobTargetGroupInner>>, Page<JobTargetGroupInner>>() {
                @Override
                public Page<JobTargetGroupInner> call(ServiceResponse<Page<JobTargetGroupInner>> response) {
                    return response.body();
                }
            });
    }
public Observable < Page < JobTargetGroupInner > > listByAgentNextAsync ( final String nextPageLink ) { return listByAgentNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < JobTargetGroupInner > > , Page < JobTargetGroupInner > > ( ) { @ Override public Page < JobTargetGroupInner > call ( ServiceResponse < Page < JobTargetGroupInner > > response ) { return response . body ( ) ; } } ) ; }
Gets all target groups in an agent.

@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;JobTargetGroupInner&gt; object