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