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