All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.knative.sources.v1alpha1.PrometheusSourceSpecBuilder Maven / Gradle / Ivy

package io.fabric8.knative.sources.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PrometheusSourceSpecBuilder extends PrometheusSourceSpecFluent implements VisitableBuilder{
  public PrometheusSourceSpecBuilder() {
    this(new PrometheusSourceSpec());
  }
  
  public PrometheusSourceSpecBuilder(PrometheusSourceSpecFluent fluent) {
    this(fluent, new PrometheusSourceSpec());
  }
  
  public PrometheusSourceSpecBuilder(PrometheusSourceSpecFluent fluent,PrometheusSourceSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public PrometheusSourceSpecBuilder(PrometheusSourceSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  PrometheusSourceSpecFluent fluent;
  
  public PrometheusSourceSpec build() {
    PrometheusSourceSpec buildable = new PrometheusSourceSpec(fluent.getAuthTokenFile(),fluent.getCaCertConfigMap(),fluent.getPromQL(),fluent.getSchedule(),fluent.getServerURL(),fluent.getServiceAccountName(),fluent.buildSink(),fluent.getStep());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy