io.alauda.devops.api.model.DoneableRouteList 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 DoneableRouteList extends RouteListFluentImpl implements Doneable{
private final RouteListBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableRouteList(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new RouteListBuilder(this);this.function=function;
}
public DoneableRouteList(RouteList item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new RouteListBuilder(this, item);this.function=function;
}
public DoneableRouteList(RouteList item){
super(item);this.builder=new RouteListBuilder(this, item);this.function=new Function() {
public RouteList apply(RouteList item) {
return item;
}
}
;
}
public RouteList done(){
return function.apply(builder.build());
}
}