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