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