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