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