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