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 class Airlock2FAActivationPollingRequest {
   @NotNull
   @Schema(description = "Activation code for the polled status", minLength = 1, maxLength = 1000)
   @Size(min = 1, max = 1000)
   private String activationCode;

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof Airlock2FAActivationPollingRequest other)) {
         return false;
      } else {
         if (!other.canEqual(this)) {
            return false;
         }

         Object this$activationCode = this.activationCode;
         Object other$activationCode = other.activationCode;
         return this$activationCode == null ? other$activationCode == null : this$activationCode.equals(other$activationCode);
      }
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "Airlock2FAActivationPollingRequest(activationCode=" + this.getActivationCode() + ")";
   }
}
