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