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