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