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