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