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