io.alauda.devops.api.model.DoneableRoutePort Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableRoutePort extends RoutePortFluentImpl implements Doneable{
private final RoutePortBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableRoutePort(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new RoutePortBuilder(this);this.function=function;
}
public DoneableRoutePort(RoutePort item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new RoutePortBuilder(this, item);this.function=function;
}
public DoneableRoutePort(RoutePort item){
super(item);this.builder=new RoutePortBuilder(this, item);this.function=new Function() {
public RoutePort apply(RoutePort item) {
return item;
}
}
;
}
public RoutePort done(){
return function.apply(builder.build());
}
}