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