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