package com.airlock.iam.authentication.infrastructure.transfer.response.ui;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

@JsonTypeName("ui.authentication.oidc.session-management.config")
public class OpenIdConnectSessionManagementUiConfigData {
   public static final String AUTH_UI_OIDC_CHECK_SESSION_CONFIG_TYPE = "ui.authentication.oidc.session-management.config";
   private boolean debug;

   @SuppressFBWarnings(justification = "generated code")
   public boolean isDebug() {
      return this.debug;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setDebug(boolean debug) {
      this.debug = debug;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof OpenIdConnectSessionManagementUiConfigData other)) {
         return false;
      } else {
         return !other.canEqual(this) ? false : this.debug == other.debug;
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   protected boolean canEqual(Object other) {
      return other instanceof OpenIdConnectSessionManagementUiConfigData;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      return result * 59 + (this.debug ? 79 : 97);
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OpenIdConnectSessionManagementUiConfigData(debug=" + this.isDebug() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public OpenIdConnectSessionManagementUiConfigData(boolean debug) {
      this.debug = debug;
   }

   @SuppressFBWarnings(justification = "generated code")
   public OpenIdConnectSessionManagementUiConfigData() {
   }
}
