io.alauda.kubernetes.api.model.extensions.DoneableIngressRule 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 DoneableIngressRule extends IngressRuleFluentImpl implements Doneable{
private final IngressRuleBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableIngressRule(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new IngressRuleBuilder(this);this.function=function;
}
public DoneableIngressRule(IngressRule item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new IngressRuleBuilder(this, item);this.function=function;
}
public DoneableIngressRule(IngressRule item){
super(item);this.builder=new IngressRuleBuilder(this, item);this.function=new Function() {
public IngressRule apply(IngressRule item) {
return item;
}
}
;
}
public IngressRule done(){
return function.apply(builder.build());
}
}