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