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