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

annotations.io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class GitLabSourceSpecBuilder extends io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
  public GitLabSourceSpecBuilder() {
    this(false);
  }
  public GitLabSourceSpecBuilder(java.lang.Boolean validationEnabled) {
    this(new GitLabSourceSpec(), validationEnabled);
  }
  public GitLabSourceSpecBuilder(io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecFluent fluent) {
    this(fluent, false);
  }
  public GitLabSourceSpecBuilder(io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecFluent fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new GitLabSourceSpec(), validationEnabled);
  }
  public GitLabSourceSpecBuilder(io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecFluent fluent,io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpec instance) {
    this(fluent, instance, false);
  }
  public GitLabSourceSpecBuilder(io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecFluent fluent,io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withAccessToken(instance.getAccessToken()); 
    fluent.withEventTypes(instance.getEventTypes()); 
    fluent.withProjectUrl(instance.getProjectUrl()); 
    fluent.withSecretToken(instance.getSecretToken()); 
    fluent.withServiceAccountName(instance.getServiceAccountName()); 
    fluent.withSink(instance.getSink()); 
    fluent.withSslverify(instance.getSslverify()); 
    this.validationEnabled = validationEnabled; 
  }
  public GitLabSourceSpecBuilder(io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpec instance) {
    this(instance,false);
  }
  public GitLabSourceSpecBuilder(io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = this; 
    this.withAccessToken(instance.getAccessToken()); 
    this.withEventTypes(instance.getEventTypes()); 
    this.withProjectUrl(instance.getProjectUrl()); 
    this.withSecretToken(instance.getSecretToken()); 
    this.withServiceAccountName(instance.getServiceAccountName()); 
    this.withSink(instance.getSink()); 
    this.withSslverify(instance.getSslverify()); 
    this.validationEnabled = validationEnabled; 
  }
  io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpecFluent fluent;
  java.lang.Boolean validationEnabled;
  public io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.GitLabSourceSpec build() {
    GitLabSourceSpec buildable = new GitLabSourceSpec(fluent.getAccessToken(),fluent.getEventTypes(),fluent.getProjectUrl(),fluent.getSecretToken(),fluent.getServiceAccountName(),fluent.getSink(),fluent.getSslverify());
    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;
    GitLabSourceSpecBuilder that = (GitLabSourceSpecBuilder) 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