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

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public final class OAuth2CheckConsentRequest {
   @NotNull
   @Schema(description = "The consent token (JWT).", minLength = 1, maxLength = 100000)
   @Size(min = 1, max = 100000)
   private String consentToken;

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OAuth2CheckConsentRequest(consentToken=" + this.getConsentToken() + ")";
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public OAuth2CheckConsentRequest(String consentToken) {
      this.consentToken = consentToken;
   }
}
