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