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