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

io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecBuilder Maven / Gradle / Ivy

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

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

    if (instance != null) {
      fluent.withCredentials(instance.getCredentials());
      fluent.withDatabase(instance.getDatabase());
      fluent.withFeed(instance.getFeed());
      fluent.withServiceAccountName(instance.getServiceAccountName());
      fluent.withSink(instance.getSink());
      fluent.withCredentials(instance.getCredentials());
      fluent.withDatabase(instance.getDatabase());
      fluent.withFeed(instance.getFeed());
      fluent.withServiceAccountName(instance.getServiceAccountName());
      fluent.withSink(instance.getSink());
    }
    this.validationEnabled = validationEnabled; 
  }
  public CouchDbSourceSpecBuilder(CouchDbSourceSpec instance) {
    this(instance,false);
  }
  public CouchDbSourceSpecBuilder(CouchDbSourceSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new CouchDbSourceSpec());

    if (instance != null) {
      this.withCredentials(instance.getCredentials());
      this.withDatabase(instance.getDatabase());
      this.withFeed(instance.getFeed());
      this.withServiceAccountName(instance.getServiceAccountName());
      this.withSink(instance.getSink());
      this.withCredentials(instance.getCredentials());
      this.withDatabase(instance.getDatabase());
      this.withFeed(instance.getFeed());
      this.withServiceAccountName(instance.getServiceAccountName());
      this.withSink(instance.getSink());
    }
    this.validationEnabled = validationEnabled; 
  }
  CouchDbSourceSpecFluent fluent;
  Boolean validationEnabled;
  public CouchDbSourceSpec build() {
    CouchDbSourceSpec buildable = new CouchDbSourceSpec(fluent.buildCredentials(),fluent.getDatabase(),fluent.getFeed(),fluent.getServiceAccountName(),fluent.buildSink());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy