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