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