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