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