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