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