this.api = checkNotNull(api, "api");
}
@Override
protected Function<Object, IterableWithMarker<Service>> markerToNextForArg0(Optional<Object> ignored) {
final ServiceAdminApi serviceApi = api.getServiceAdminApi().get();
return new Function<Object, IterableWithMarker<Service>>() {
@SuppressWarnings("unchecked")
@Override
public IterableWithMarker<Service> apply(Object input) {
PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
return IterableWithMarker.class.cast(serviceApi.list(paginationOptions));
}
@Override
public String toString() {
return "listServices()";