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