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