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