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