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

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.annotation.Nullable;

public class UrlValidationRequest {
   @Nullable
   private String afterLogoutUrl;
   @Nullable
   private String loginUrl;

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

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "UrlValidationRequest(afterLogoutUrl=" + this.getAfterLogoutUrl() + ", loginUrl=" + this.getLoginUrl() + ")";
   }
}
