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