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

io.fabric8.knative.sources.v1alpha1.CouchDbSourceSpecBuilder Maven / Gradle / Ivy

The newest version!
package io.fabric8.knative.sources.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class CouchDbSourceSpecBuilder extends CouchDbSourceSpecFluent implements VisitableBuilder{
  public CouchDbSourceSpecBuilder() {
    this(new CouchDbSourceSpec());
  }
  
  public CouchDbSourceSpecBuilder(CouchDbSourceSpecFluent fluent) {
    this(fluent, new CouchDbSourceSpec());
  }
  
  public CouchDbSourceSpecBuilder(CouchDbSourceSpecFluent fluent,CouchDbSourceSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public CouchDbSourceSpecBuilder(CouchDbSourceSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  CouchDbSourceSpecFluent fluent;
  
  public CouchDbSourceSpec build() {
    CouchDbSourceSpec buildable = new CouchDbSourceSpec(fluent.buildCredentials(),fluent.getDatabase(),fluent.getFeed(),fluent.getServiceAccountName(),fluent.buildSink());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy