package com.airlock.iam.common.api.domain.model.locking;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.time.Instant;

public final class LockInfo {
   private final String lockReason;
   private final Instant lockDate;

   @SuppressFBWarnings(justification = "generated code")
   public LockInfo(String lockReason, Instant lockDate) {
      this.lockReason = lockReason;
      this.lockDate = lockDate;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public Instant getLockDate() {
      return this.lockDate;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "LockInfo(lockReason=" + this.getLockReason() + ", lockDate=" + this.getLockDate() + ")";
   }
}
