package com.airlock.iam.common.domain.service.jwt;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Optional;

public final class JwtSettingsValidationError {
   private final String message;
   private final Optional<Exception> cause;

   @SuppressFBWarnings(justification = "generated code")
   public JwtSettingsValidationError(String message, Optional<Exception> cause) {
      this.message = message;
      this.cause = cause;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public Optional<Exception> getCause() {
      return this.cause;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof JwtSettingsValidationError other)) {
         return false;
      } else {
         Object this$message = this.message;
         Object other$message = other.message;
         if (this$message == null ? other$message == null : this$message.equals(other$message)) {
            Object this$cause = this.cause;
            Object other$cause = other.cause;
            return this$cause == null ? other$cause == null : this$cause.equals(other$cause);
         } else {
            return false;
         }
      }
   }

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "JwtSettingsValidationError(message=" + this.getMessage() + ", cause=" + this.getCause() + ")";
   }
}
