annotations.io.alauda.kubernetes.api.model.extensions.DoneableIngress Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableIngress extends IngressFluentImpl implements Doneable{
private final IngressBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableIngress(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new IngressBuilder(this);this.function=function;
}
public DoneableIngress(Ingress item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new IngressBuilder(this, item);this.function=function;
}
public DoneableIngress(Ingress item){
super(item);this.builder=new IngressBuilder(this, item);this.function=new Function() {
public Ingress apply(Ingress item) {
return item;
}
}
;
}
public Ingress done(){
return function.apply(builder.build());
}
}