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