}
@Override
protected Function<Object, IterableWithMarker<SecurityGroup>> markerToNextForArg0(Optional<Object> arg0) {
final String region = arg0.isPresent() ? arg0.get().toString() : null;
final SecurityGroupApi securityGroupApi = api.getSecurityGroupApiForRegion(region);
return new Function<Object, IterableWithMarker<SecurityGroup>>() {
@Override
public IterableWithMarker<SecurityGroup> apply(Object input) {
return securityGroupApi.list(ListSecurityGroupsOptions.Builder.afterMarker(input));
}
@Override
public String toString() {
return "listSecurityGroupsInRegion(" + region + ")";