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

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.Boolean;
public class GitLabSourceSpecBuilder extends GitLabSourceSpecFluentImpl implements VisitableBuilder{
  public GitLabSourceSpecBuilder() {
    this(false);
  }
  public GitLabSourceSpecBuilder(Boolean validationEnabled) {
    this(new GitLabSourceSpec(), validationEnabled);
  }
  public GitLabSourceSpecBuilder(GitLabSourceSpecFluent fluent) {
    this(fluent, false);
  }
  public GitLabSourceSpecBuilder(GitLabSourceSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new GitLabSourceSpec(), validationEnabled);
  }
  public GitLabSourceSpecBuilder(GitLabSourceSpecFluent fluent,GitLabSourceSpec instance) {
    this(fluent, instance, false);
  }
  public GitLabSourceSpecBuilder(GitLabSourceSpecFluent fluent,GitLabSourceSpec instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withAccessToken(instance.getAccessToken()); 
    fluent.withCeOverrides(instance.getCeOverrides()); 
    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(GitLabSourceSpec instance) {
    this(instance,false);
  }
  public GitLabSourceSpecBuilder(GitLabSourceSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withAccessToken(instance.getAccessToken()); 
    this.withCeOverrides(instance.getCeOverrides()); 
    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; 
  }
  GitLabSourceSpecFluent fluent;
  Boolean validationEnabled;
  public GitLabSourceSpec build() {
    GitLabSourceSpec buildable = new GitLabSourceSpec(fluent.getAccessToken(),fluent.getCeOverrides(),fluent.getEventTypes(),fluent.getProjectUrl(),fluent.getSecretToken(),fluent.getServiceAccountName(),fluent.getSink(),fluent.getSslverify());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy