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