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