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