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