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