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