annotations.io.alauda.devops.api.model.DoneableBuildStatusOutput 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 DoneableBuildStatusOutput extends BuildStatusOutputFluentImpl implements Doneable{
private final BuildStatusOutputBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableBuildStatusOutput(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new BuildStatusOutputBuilder(this);this.function=function;
}
public DoneableBuildStatusOutput(BuildStatusOutput item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new BuildStatusOutputBuilder(this, item);this.function=function;
}
public DoneableBuildStatusOutput(BuildStatusOutput item){
super(item);this.builder=new BuildStatusOutputBuilder(this, item);this.function=new Function() {
public BuildStatusOutput apply(BuildStatusOutput item) {
return item;
}
}
;
}
public BuildStatusOutput done(){
return function.apply(builder.build());
}
}