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