package com.airlock.iam.admin.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 SynchronizeVascoTokenRequest {
   @NotNull
   @Schema(description = "The first of two required OTPs.", minLength = 1)
   @Size(min = 1)
   private String otp1;
   @NotNull
   @Schema(description = "The second of two required OTPs.", minLength = 1)
   @Size(min = 1)
   private String otp2;

   @SuppressFBWarnings(justification = "generated code")
   public static SynchronizeVascoTokenRequest.SynchronizeVascoTokenRequestBuilder builder() {
      return new SynchronizeVascoTokenRequest.SynchronizeVascoTokenRequestBuilder();
   }

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

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "SynchronizeVascoTokenRequest(otp1=" + this.getOtp1() + ", otp2=" + this.getOtp2() + ")";
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public SynchronizeVascoTokenRequest(String otp1, String otp2) {
      this.otp1 = otp1;
      this.otp2 = otp2;
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class SynchronizeVascoTokenRequestBuilder {
      @SuppressFBWarnings(justification = "generated code")
      private String otp1;
      @SuppressFBWarnings(justification = "generated code")
      private String otp2;

      @SuppressFBWarnings(justification = "generated code")
      SynchronizeVascoTokenRequestBuilder() {
      }

      @SuppressFBWarnings(justification = "generated code")
      public SynchronizeVascoTokenRequest.SynchronizeVascoTokenRequestBuilder otp1(String otp1) {
         this.otp1 = otp1;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public SynchronizeVascoTokenRequest.SynchronizeVascoTokenRequestBuilder otp2(String otp2) {
         this.otp2 = otp2;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public SynchronizeVascoTokenRequest build() {
         return new SynchronizeVascoTokenRequest(this.otp1, this.otp2);
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "SynchronizeVascoTokenRequest.SynchronizeVascoTokenRequestBuilder(otp1=" + this.otp1 + ", otp2=" + this.otp2 + ")";
      }
   }
}
