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

annotations.io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecBuilder Maven / Gradle / Ivy

package io.fabric8.knative.eventing.contrib.prometheus.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class PrometheusSourceSpecBuilder extends io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
  public PrometheusSourceSpecBuilder() {
    this(false);
  }
  public PrometheusSourceSpecBuilder(java.lang.Boolean validationEnabled) {
    this(new PrometheusSourceSpec(), validationEnabled);
  }
  public PrometheusSourceSpecBuilder(io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecFluent fluent) {
    this(fluent, false);
  }
  public PrometheusSourceSpecBuilder(io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecFluent fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new PrometheusSourceSpec(), validationEnabled);
  }
  public PrometheusSourceSpecBuilder(io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecFluent fluent,io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpec instance) {
    this(fluent, instance, false);
  }
  public PrometheusSourceSpecBuilder(io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecFluent fluent,io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withAuthTokenFile(instance.getAuthTokenFile()); 
    fluent.withCaCertConfigMap(instance.getCaCertConfigMap()); 
    fluent.withPromQL(instance.getPromQL()); 
    fluent.withSchedule(instance.getSchedule()); 
    fluent.withServerURL(instance.getServerURL()); 
    fluent.withServiceAccountName(instance.getServiceAccountName()); 
    fluent.withSink(instance.getSink()); 
    fluent.withStep(instance.getStep()); 
    this.validationEnabled = validationEnabled; 
  }
  public PrometheusSourceSpecBuilder(io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpec instance) {
    this(instance,false);
  }
  public PrometheusSourceSpecBuilder(io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = this; 
    this.withAuthTokenFile(instance.getAuthTokenFile()); 
    this.withCaCertConfigMap(instance.getCaCertConfigMap()); 
    this.withPromQL(instance.getPromQL()); 
    this.withSchedule(instance.getSchedule()); 
    this.withServerURL(instance.getServerURL()); 
    this.withServiceAccountName(instance.getServiceAccountName()); 
    this.withSink(instance.getSink()); 
    this.withStep(instance.getStep()); 
    this.validationEnabled = validationEnabled; 
  }
  io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpecFluent fluent;
  java.lang.Boolean validationEnabled;
  public io.fabric8.knative.eventing.contrib.prometheus.v1alpha1.PrometheusSourceSpec build() {
    PrometheusSourceSpec buildable = new PrometheusSourceSpec(fluent.getAuthTokenFile(),fluent.getCaCertConfigMap(),fluent.getPromQL(),fluent.getSchedule(),fluent.getServerURL(),fluent.getServiceAccountName(),fluent.getSink(),fluent.getStep());
    return buildable;
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    PrometheusSourceSpecBuilder that = (PrometheusSourceSpecBuilder) o;
    if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;

    if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy