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