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