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