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