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