package com.airlock.iam.admin.infrastructure.transfer.response;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.validation.constraints.NotNull;

@JsonTypeName("adminapp.custom-urls")
public class CustomUrlData {
   public static final String CUSTOM_URLS = "adminapp.custom-urls";
   private String customLoginUrl;
   @NotNull
   private String afterLogoutUrl;

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

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "CustomUrlData(customLoginUrl=" + this.getCustomLoginUrl() + ", afterLogoutUrl=" + this.getAfterLogoutUrl() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public CustomUrlData(String customLoginUrl, String afterLogoutUrl) {
      this.customLoginUrl = customLoginUrl;
      this.afterLogoutUrl = afterLogoutUrl;
   }

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