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