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