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