annotations.io.alauda.kubernetes.api.model.DoneablePipelineTemplateArgumentValue Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneablePipelineTemplateArgumentValue extends PipelineTemplateArgumentValueFluentImpl implements Doneable{
private final PipelineTemplateArgumentValueBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneablePipelineTemplateArgumentValue(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new PipelineTemplateArgumentValueBuilder(this);this.function=function;
}
public DoneablePipelineTemplateArgumentValue(PipelineTemplateArgumentValue item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new PipelineTemplateArgumentValueBuilder(this, item);this.function=function;
}
public DoneablePipelineTemplateArgumentValue(PipelineTemplateArgumentValue item){
super(item);this.builder=new PipelineTemplateArgumentValueBuilder(this, item);this.function=new Function() {
public PipelineTemplateArgumentValue apply(PipelineTemplateArgumentValue item) {
return item;
}
}
;
}
public PipelineTemplateArgumentValue done(){
return function.apply(builder.build());
}
}