package com.airlock.iam.authentication.infrastructure.transfer.response;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.annotation.Nullable;
import java.util.Date;

public final class LatestAuthenticationData {
   @Nullable
   private Date attemptAt;
   @Nullable
   private Boolean successful;

   @Nullable
   @SuppressFBWarnings(justification = "generated code")
   public Date getAttemptAt() {
      return this.attemptAt;
   }

   @Nullable
   @SuppressFBWarnings(justification = "generated code")
   public Boolean getSuccessful() {
      return this.successful;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setAttemptAt(@Nullable Date attemptAt) {
      this.attemptAt = attemptAt;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setSuccessful(@Nullable Boolean successful) {
      this.successful = successful;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "LatestAuthenticationData(attemptAt=" + this.getAttemptAt() + ", successful=" + this.getSuccessful() + ")";
   }
}
