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 Saml2SpAccessRequest {
   @NotNull
   @Schema(description = "Continuation ID for SP- or IdP-initiated SSO.", minLength = 1, maxLength = 100)
   @Size(min = 1, max = 100)
   private String continuationId;

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "Saml2SpAccessRequest(continuationId=" + this.getContinuationId() + ")";
   }
}
