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