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