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