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.JsonInclude.Include;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.annotation.Nullable;

public class OnLogoutConfigData implements UiSettingsData {
   private String type;
   private String target;
   @Nullable
   @JsonInclude(Include.NON_NULL)
   private String uiTenantId;

   @SuppressFBWarnings(justification = "generated code")
   public String getType() {
      return this.type;
   }

   @SuppressFBWarnings(justification = "generated code")
   public String getTarget() {
      return this.target;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public void setType(String type) {
      this.type = type;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setTarget(String target) {
      this.target = target;
   }

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

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

         Object this$type = this.type;
         Object other$type = other.type;
         if (this$type == null ? other$type == null : this$type.equals(other$type)) {
            Object this$target = this.target;
            Object other$target = other.target;
            if (this$target == null ? other$target == null : this$target.equals(other$target)) {
               Object this$uiTenantId = this.uiTenantId;
               Object other$uiTenantId = other.uiTenantId;
               return this$uiTenantId == null ? other$uiTenantId == null : this$uiTenantId.equals(other$uiTenantId);
            } else {
               return false;
            }
         } else {
            return false;
         }
      }
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OnLogoutConfigData(type=" + this.getType() + ", target=" + this.getTarget() + ", uiTenantId=" + this.getUiTenantId() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public OnLogoutConfigData(String type, String target, @Nullable String uiTenantId) {
      this.type = type;
      this.target = target;
      this.uiTenantId = uiTenantId;
   }

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