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