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

io.fabric8.knative.eventing.contrib.github.v1alpha1.GitHubSourceSpecBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class GitHubSourceSpecBuilder extends GitHubSourceSpecFluent implements VisitableBuilder{
  public GitHubSourceSpecBuilder() {
    this(false);
  }
  public GitHubSourceSpecBuilder(Boolean validationEnabled) {
    this(new GitHubSourceSpec(), validationEnabled);
  }
  public GitHubSourceSpecBuilder(GitHubSourceSpecFluent fluent) {
    this(fluent, false);
  }
  public GitHubSourceSpecBuilder(GitHubSourceSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new GitHubSourceSpec(), validationEnabled);
  }
  public GitHubSourceSpecBuilder(GitHubSourceSpecFluent fluent,GitHubSourceSpec instance) {
    this(fluent, instance, false);
  }
  public GitHubSourceSpecBuilder(GitHubSourceSpecFluent fluent,GitHubSourceSpec instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    instance = (instance != null ? instance : new GitHubSourceSpec());

    if (instance != null) {
      fluent.withAccessToken(instance.getAccessToken());
      fluent.withCeOverrides(instance.getCeOverrides());
      fluent.withEventTypes(instance.getEventTypes());
      fluent.withGithubAPIURL(instance.getGithubAPIURL());
      fluent.withOwnerAndRepository(instance.getOwnerAndRepository());
      fluent.withSecretToken(instance.getSecretToken());
      fluent.withSecure(instance.getSecure());
      fluent.withServiceAccountName(instance.getServiceAccountName());
      fluent.withSink(instance.getSink());
      fluent.withAccessToken(instance.getAccessToken());
      fluent.withCeOverrides(instance.getCeOverrides());
      fluent.withEventTypes(instance.getEventTypes());
      fluent.withGithubAPIURL(instance.getGithubAPIURL());
      fluent.withOwnerAndRepository(instance.getOwnerAndRepository());
      fluent.withSecretToken(instance.getSecretToken());
      fluent.withSecure(instance.getSecure());
      fluent.withServiceAccountName(instance.getServiceAccountName());
      fluent.withSink(instance.getSink());
    }
    this.validationEnabled = validationEnabled; 
  }
  public GitHubSourceSpecBuilder(GitHubSourceSpec instance) {
    this(instance,false);
  }
  public GitHubSourceSpecBuilder(GitHubSourceSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new GitHubSourceSpec());

    if (instance != null) {
      this.withAccessToken(instance.getAccessToken());
      this.withCeOverrides(instance.getCeOverrides());
      this.withEventTypes(instance.getEventTypes());
      this.withGithubAPIURL(instance.getGithubAPIURL());
      this.withOwnerAndRepository(instance.getOwnerAndRepository());
      this.withSecretToken(instance.getSecretToken());
      this.withSecure(instance.getSecure());
      this.withServiceAccountName(instance.getServiceAccountName());
      this.withSink(instance.getSink());
      this.withAccessToken(instance.getAccessToken());
      this.withCeOverrides(instance.getCeOverrides());
      this.withEventTypes(instance.getEventTypes());
      this.withGithubAPIURL(instance.getGithubAPIURL());
      this.withOwnerAndRepository(instance.getOwnerAndRepository());
      this.withSecretToken(instance.getSecretToken());
      this.withSecure(instance.getSecure());
      this.withServiceAccountName(instance.getServiceAccountName());
      this.withSink(instance.getSink());
    }
    this.validationEnabled = validationEnabled; 
  }
  GitHubSourceSpecFluent fluent;
  Boolean validationEnabled;
  public GitHubSourceSpec build() {
    GitHubSourceSpec buildable = new GitHubSourceSpec(fluent.buildAccessToken(),fluent.buildCeOverrides(),fluent.getEventTypes(),fluent.getGithubAPIURL(),fluent.getOwnerAndRepository(),fluent.buildSecretToken(),fluent.getSecure(),fluent.getServiceAccountName(),fluent.buildSink());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy