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