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