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