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