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