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