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