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