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