io.fabric8.knative.sources.v1alpha1.PrometheusSourceBuilder Maven / Gradle / Ivy
package io.fabric8.knative.sources.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PrometheusSourceBuilder extends PrometheusSourceFluent implements VisitableBuilder{
public PrometheusSourceBuilder() {
this(new PrometheusSource());
}
public PrometheusSourceBuilder(PrometheusSourceFluent> fluent) {
this(fluent, new PrometheusSource());
}
public PrometheusSourceBuilder(PrometheusSourceFluent> fluent,PrometheusSource instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public PrometheusSourceBuilder(PrometheusSource instance) {
this.fluent = this;
this.copyInstance(instance);
}
PrometheusSourceFluent> fluent;
public PrometheusSource build() {
PrometheusSource buildable = new PrometheusSource(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec(),fluent.buildStatus());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy