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