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