io.alauda.kubernetes.api.model.DoneablePipelineSourceGit Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneablePipelineSourceGit extends PipelineSourceGitFluentImpl implements Doneable{
private final PipelineSourceGitBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneablePipelineSourceGit(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new PipelineSourceGitBuilder(this);this.function=function;
}
public DoneablePipelineSourceGit(PipelineSourceGit item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new PipelineSourceGitBuilder(this, item);this.function=function;
}
public DoneablePipelineSourceGit(PipelineSourceGit item){
super(item);this.builder=new PipelineSourceGitBuilder(this, item);this.function=new Function() {
public PipelineSourceGit apply(PipelineSourceGit item) {
return item;
}
}
;
}
public PipelineSourceGit done(){
return function.apply(builder.build());
}
}