annotations.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.Object;
import java.lang.Boolean;
public class CouchDbSourceSpecBuilder extends io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {
io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluent> fluent;
java.lang.Boolean validationEnabled;
public CouchDbSourceSpecBuilder() {
this(true);
}
public CouchDbSourceSpecBuilder(java.lang.Boolean validationEnabled) {
this(new CouchDbSourceSpec(), validationEnabled);
}
public CouchDbSourceSpecBuilder(io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.CouchDbSourceSpecFluent> fluent) {
this(fluent, true);
}
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, true);
}
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,true);
}
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;
}
public io.fabric8.knative.eventing.contrib.couchdb.v1alpha1.EditableCouchDbSourceSpec build() {
EditableCouchDbSourceSpec buildable = new EditableCouchDbSourceSpec(fluent.getCredentials(),fluent.getDatabase(),fluent.getFeed(),fluent.getServiceAccountName(),fluent.getSink());
return buildable;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
CouchDbSourceSpecBuilder that = (CouchDbSourceSpecBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy