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