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