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