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