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