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