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

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

public class Airlock2FARecoveryFlowBindingRequest {
   @ArraySchema(
      arraySchema = @Schema(
         description = "Identifiers of the devices to be recovered. Exactly one of the identifiers should correspond to a device of the current user."
      )
   )
   @NotNull
   private List<@Size(min = 1, max = 100) String> deviceIds;

   @SuppressFBWarnings(justification = "generated code")
   public List<@Size(min = 1, max = 100) String> getDeviceIds() {
      return this.deviceIds;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setDeviceIds(List<@Size(min = 1, max = 100) String> deviceIds) {
      this.deviceIds = deviceIds;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "Airlock2FARecoveryFlowBindingRequest(deviceIds=" + this.getDeviceIds() + ")";
   }
}
