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