package com.airlock.iam.admin.infrastructure.transfer.response.user;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Nullable;
import java.util.Date;

public class LockData {
   @Nullable
   @Schema(description = "An (optional) short explanation why the user is locked.")
   private String reason;
   @Nullable
   @Schema(description = "An (optional) date and time when the user was locked.")
   private Date date;

   @Nullable
   @SuppressFBWarnings(justification = "generated code")
   public String getReason() {
      return this.reason;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public void setReason(@Nullable String reason) {
      this.reason = reason;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "LockData(reason=" + this.getReason() + ", date=" + this.getDate() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public LockData(@Nullable String reason, @Nullable Date date) {
      this.reason = reason;
      this.date = date;
   }
}
