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