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