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

import com.airlock.iam.flow.ui.infrastructure.transfer.response.UiSettingsData;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.annotation.Nullable;
import java.util.Map;

@JsonTypeName("ui.authentication.non-flow.config")
public class AuthenticationNonFlowUiConfigData implements UiSettingsData {
   public static final String AUTH_UI_NON_FLOW_CONFIG_TYPE = "ui.authentication.non-flow.config";
   @Nullable
   @JsonInclude(Include.NON_NULL)
   private String uiTenantId;
   @Nullable
   private Map<String, Object> pageSettings;

   @Nullable
   @SuppressFBWarnings(justification = "generated code")
   public String getUiTenantId() {
      return this.uiTenantId;
   }

   @Nullable
   @SuppressFBWarnings(justification = "generated code")
   public Map<String, Object> getPageSettings() {
      return this.pageSettings;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setUiTenantId(@Nullable String uiTenantId) {
      this.uiTenantId = uiTenantId;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setPageSettings(@Nullable Map<String, Object> pageSettings) {
      this.pageSettings = pageSettings;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $uiTenantId = this.uiTenantId;
      result = result * 59 + ($uiTenantId == null ? 43 : $uiTenantId.hashCode());
      Object $pageSettings = this.pageSettings;
      return result * 59 + ($pageSettings == null ? 43 : $pageSettings.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "AuthenticationNonFlowUiConfigData(uiTenantId=" + this.getUiTenantId() + ", pageSettings=" + this.getPageSettings() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public AuthenticationNonFlowUiConfigData(@Nullable String uiTenantId, @Nullable Map<String, Object> pageSettings) {
      this.uiTenantId = uiTenantId;
      this.pageSettings = pageSettings;
   }

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