}
@Override
protected Function<Object, IterableWithMarker<Router>> markerToNextForArg0(Optional<Object> arg0) {
String region = arg0.isPresent() ? arg0.get().toString() : null;
final RouterApi routerApi = api.getRouterExtensionApi(region).get();
return new Function<Object, IterableWithMarker<Router>>() {
@SuppressWarnings("unchecked")
@Override
public IterableWithMarker<Router> apply(Object input) {
PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
return IterableWithMarker.class.cast(routerApi.list(paginationOptions));
}
@Override
public String toString() {
return "listRouters()";