annotations.io.alauda.devops.api.model.DoneableImageChangeTrigger 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 DoneableImageChangeTrigger extends ImageChangeTriggerFluentImpl implements Doneable{
private final ImageChangeTriggerBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableImageChangeTrigger(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new ImageChangeTriggerBuilder(this);this.function=function;
}
public DoneableImageChangeTrigger(ImageChangeTrigger item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new ImageChangeTriggerBuilder(this, item);this.function=function;
}
public DoneableImageChangeTrigger(ImageChangeTrigger item){
super(item);this.builder=new ImageChangeTriggerBuilder(this, item);this.function=new Function() {
public ImageChangeTrigger apply(ImageChangeTrigger item) {
return item;
}
}
;
}
public ImageChangeTrigger done(){
return function.apply(builder.build());
}
}