org.graylog.security.authservice.AutoValue_GlobalAuthServiceConfig_Data Maven / Gradle / Ivy
package org.graylog.security.authservice;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Optional;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GlobalAuthServiceConfig_Data extends GlobalAuthServiceConfig.Data {
private final Optional activeBackend;
AutoValue_GlobalAuthServiceConfig_Data(
Optional activeBackend) {
if (activeBackend == null) {
throw new NullPointerException("Null activeBackend");
}
this.activeBackend = activeBackend;
}
@JsonProperty("active_backend")
@Override
public Optional activeBackend() {
return activeBackend;
}
@Override
public String toString() {
return "Data{"
+ "activeBackend=" + activeBackend
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GlobalAuthServiceConfig.Data) {
GlobalAuthServiceConfig.Data that = (GlobalAuthServiceConfig.Data) o;
return this.activeBackend.equals(that.activeBackend());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= activeBackend.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy