io.strimzi.api.kafka.model.KafkaBridgeConsumerSpecBuilder Maven / Gradle / Ivy
package io.strimzi.api.kafka.model;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class KafkaBridgeConsumerSpecBuilder extends KafkaBridgeConsumerSpecFluentImpl implements VisitableBuilder{
KafkaBridgeConsumerSpecFluent> fluent;
Boolean validationEnabled;
public KafkaBridgeConsumerSpecBuilder(){
this(true);
}
public KafkaBridgeConsumerSpecBuilder(Boolean validationEnabled){
this(new KafkaBridgeConsumerSpec(), validationEnabled);
}
public KafkaBridgeConsumerSpecBuilder(KafkaBridgeConsumerSpecFluent> fluent){
this(fluent, true);
}
public KafkaBridgeConsumerSpecBuilder(KafkaBridgeConsumerSpecFluent> fluent,Boolean validationEnabled){
this(fluent, new KafkaBridgeConsumerSpec(), validationEnabled);
}
public KafkaBridgeConsumerSpecBuilder(KafkaBridgeConsumerSpecFluent> fluent,KafkaBridgeConsumerSpec instance){
this(fluent, instance, true);
}
public KafkaBridgeConsumerSpecBuilder(KafkaBridgeConsumerSpecFluent> fluent,KafkaBridgeConsumerSpec instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withConfig(instance.getConfig());
this.validationEnabled = validationEnabled;
}
public KafkaBridgeConsumerSpecBuilder(KafkaBridgeConsumerSpec instance){
this(instance,true);
}
public KafkaBridgeConsumerSpecBuilder(KafkaBridgeConsumerSpec instance,Boolean validationEnabled){
this.fluent = this;
this.withConfig(instance.getConfig());
this.validationEnabled = validationEnabled;
}
public KafkaBridgeConsumerSpec build(){
KafkaBridgeConsumerSpec buildable = new KafkaBridgeConsumerSpec();
buildable.setConfig(fluent.getConfig());
return buildable;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
KafkaBridgeConsumerSpecBuilder that = (KafkaBridgeConsumerSpecBuilder) 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy