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