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