io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordBuilder Maven / Gradle / Ivy
package io.strimzi.api.kafka.model;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
/**
* Configures the Kafka Brokers JMX port with username and password protected.
*/
public class KafkaJmxAuthenticationPasswordBuilder extends io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {
io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordFluent> fluent;
java.lang.Boolean validationEnabled;
public KafkaJmxAuthenticationPasswordBuilder() {
this(true);
}
public KafkaJmxAuthenticationPasswordBuilder(java.lang.Boolean validationEnabled) {
this(new KafkaJmxAuthenticationPassword(), validationEnabled);
}
public KafkaJmxAuthenticationPasswordBuilder(io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordFluent> fluent) {
this(fluent, true);
}
public KafkaJmxAuthenticationPasswordBuilder(io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new KafkaJmxAuthenticationPassword(), validationEnabled);
}
public KafkaJmxAuthenticationPasswordBuilder(io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordFluent> fluent,io.strimzi.api.kafka.model.KafkaJmxAuthenticationPassword instance) {
this(fluent, instance, true);
}
public KafkaJmxAuthenticationPasswordBuilder(io.strimzi.api.kafka.model.KafkaJmxAuthenticationPasswordFluent> fluent,io.strimzi.api.kafka.model.KafkaJmxAuthenticationPassword instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
this.validationEnabled = validationEnabled;
}
public KafkaJmxAuthenticationPasswordBuilder(io.strimzi.api.kafka.model.KafkaJmxAuthenticationPassword instance) {
this(instance,true);
}
public KafkaJmxAuthenticationPasswordBuilder(io.strimzi.api.kafka.model.KafkaJmxAuthenticationPassword instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.validationEnabled = validationEnabled;
}
public io.strimzi.api.kafka.model.KafkaJmxAuthenticationPassword build() {
KafkaJmxAuthenticationPassword buildable = new KafkaJmxAuthenticationPassword();
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;
KafkaJmxAuthenticationPasswordBuilder that = (KafkaJmxAuthenticationPasswordBuilder) 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());
}
}