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