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