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