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