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