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