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