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