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