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

org.graylog2.users.$AutoValue_UserConfiguration Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.users;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Duration;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_UserConfiguration extends UserConfiguration {

  private final boolean enableGlobalSessionTimeout;

  private final Duration globalSessionTimeoutInterval;

  $AutoValue_UserConfiguration(
      boolean enableGlobalSessionTimeout,
      Duration globalSessionTimeoutInterval) {
    this.enableGlobalSessionTimeout = enableGlobalSessionTimeout;
    if (globalSessionTimeoutInterval == null) {
      throw new NullPointerException("Null globalSessionTimeoutInterval");
    }
    this.globalSessionTimeoutInterval = globalSessionTimeoutInterval;
  }

  @JsonProperty("enable_global_session_timeout")
  @Override
  public boolean enableGlobalSessionTimeout() {
    return enableGlobalSessionTimeout;
  }

  @JsonProperty("global_session_timeout_interval")
  @Override
  public Duration globalSessionTimeoutInterval() {
    return globalSessionTimeoutInterval;
  }

  @Override
  public String toString() {
    return "UserConfiguration{"
        + "enableGlobalSessionTimeout=" + enableGlobalSessionTimeout + ", "
        + "globalSessionTimeoutInterval=" + globalSessionTimeoutInterval
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UserConfiguration) {
      UserConfiguration that = (UserConfiguration) o;
      return this.enableGlobalSessionTimeout == that.enableGlobalSessionTimeout()
          && this.globalSessionTimeoutInterval.equals(that.globalSessionTimeoutInterval());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= enableGlobalSessionTimeout ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= globalSessionTimeoutInterval.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy