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 Saml2IdpAccessRequest {
   @NotNull
   @Schema(description = "Request ID for SP-initiated SSO.", minLength = 1, maxLength = 1000)
   @Size(min = 1, max = 1000)
   private String requestId;

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "Saml2IdpAccessRequest(requestId=" + this.getRequestId() + ")";
   }
}
