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