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