package com.airlock.iam.flow.shared.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;
import java.util.Map;

public class MatrixChallengeCheckRequest {
   @Size(min = 1)
   @NotNull
   @Schema(description = "Map of the original challenge coordinate to the respective challenge response.")
   private Map<@Size(min = 1, max = 50) String, @Size(min = 1, max = 100) String> challengeResponse;

   @SuppressFBWarnings(justification = "generated code")
   public Map<@Size(min = 1, max = 50) String, @Size(min = 1, max = 100) String> getChallengeResponse() {
      return this.challengeResponse;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setChallengeResponse(Map<@Size(min = 1, max = 50) String, @Size(min = 1, max = 100) String> challengeResponse) {
      this.challengeResponse = challengeResponse;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "MatrixChallengeCheckRequest(challengeResponse=" + this.getChallengeResponse() + ")";
   }
}
