package com.airlock.iam.apipolicyservice.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 ResolveTechClientRequest {
   @NotNull
   @Schema(minLength = 1, maxLength = 1000)
   @Size(min = 1, max = 1000)
   private String apiKey;

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "ResolveTechClientRequest(apiKey=" + this.getApiKey() + ")";
   }
}
