package com.airlock.iam.publicselfservice.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 DeviceTokenResponseCheckRequest {
   @NotNull
   @Schema(description = "The JWT to be verified.", minLength = 1, maxLength = 100000)
   @Size(min = 1, max = 100000)
   private String jwt;

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "DeviceTokenResponseCheckRequest(jwt=" + this.getJwt() + ")";
   }

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

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