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