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