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