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