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