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