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 CrontoStartDeviceActivationFlowRequest {
   @NotNull
   @Schema(description = "The OTP from the Cronto activation letter.", minLength = 1, maxLength = 200)
   @Size(min = 1, max = 200)
   private String firstOtp;

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "CrontoStartDeviceActivationFlowRequest(firstOtp=" + this.getFirstOtp() + ")";
   }

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

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