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