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