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 CouchDbSourceSpecFluentImpl implements VisitableBuilder{
  public CouchDbSourceSpecBuilder() {
    this(false);
  }
  public CouchDbSourceSpecBuilder(Boolean validationEnabled) {
    this(new CouchDbSourceSpec(), validationEnabled);
  }
  public CouchDbSourceSpecBuilder(CouchDbSourceSpecFluent fluent) {
    this(fluent, false);
  }
  public CouchDbSourceSpecBuilder(io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluent fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new CouchDbSourceSpec(), validationEnabled);
  }
  public CouchDbSourceSpecBuilder(io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluent fluent,io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpec instance) {
    this(fluent, instance, false);
  }
  public CouchDbSourceSpecBuilder(io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluent fluent,io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = fluent; 
    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(io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpec instance) {
    this(instance,false);
  }
  public CouchDbSourceSpecBuilder(io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = this; 
    this.withCredentials(instance.getCredentials()); 
    this.withDatabase(instance.getDatabase()); 
    this.withFeed(instance.getFeed()); 
    this.withServiceAccountName(instance.getServiceAccountName()); 
    this.withSink(instance.getSink()); 
    this.validationEnabled = validationEnabled; 
  }
  io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluent fluent;
  java.lang.Boolean validationEnabled;
  public io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpec build() {
    CouchDbSourceSpec buildable = new CouchDbSourceSpec(fluent.getCredentials(),fluent.getDatabase(),fluent.getFeed(),fluent.getServiceAccountName(),fluent.getSink());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy