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