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