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