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