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