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