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