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