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