me.snowdrop.istio.adapter.prometheus.DoneablePrometheus Maven / Gradle / Ivy
package me.snowdrop.istio.adapter.prometheus;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneablePrometheus extends PrometheusFluentImpl implements Doneable{
private final PrometheusBuilder builder;
private final io.fabric8.kubernetes.api.builder.Function function;
public DoneablePrometheus(io.fabric8.kubernetes.api.builder.Function function){
super();this.builder=new PrometheusBuilder(this);this.function=function;
}
public DoneablePrometheus(Prometheus item,io.fabric8.kubernetes.api.builder.Function function){
super(item);this.builder=new PrometheusBuilder(this, item);this.function=function;
}
public DoneablePrometheus(Prometheus item){
super(item);this.builder=new PrometheusBuilder(this, item);this.function=new Function() {
public Prometheus apply(Prometheus item) {
return item;
}
}
;
}
public Prometheus done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy