io.alauda.kubernetes.api.model.DoneableTaint Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneableTaint extends TaintFluentImpl implements Doneable{
private final TaintBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableTaint(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new TaintBuilder(this);this.function=function;
}
public DoneableTaint(Taint item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new TaintBuilder(this, item);this.function=function;
}
public DoneableTaint(Taint item){
super(item);this.builder=new TaintBuilder(this, item);this.function=new Function() {
public Taint apply(Taint item) {
return item;
}
}
;
}
public Taint done(){
return function.apply(builder.build());
}
}