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