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