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