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