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