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

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.validation.constraints.NotNull;

public class OAuth2RemoteConsentAttributeData {
   @NotNull
   private String redirectUrl;
   @NotNull
   private String token;

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

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OAuth2RemoteConsentAttributeData(redirectUrl=" + this.getRedirectUrl() + ", token=" + this.getToken() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public OAuth2RemoteConsentAttributeData(String redirectUrl, String token) {
      this.redirectUrl = redirectUrl;
      this.token = token;
   }

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