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

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

public class UserLockRequest {
   @NotNull
   @Schema(description = "A short explanation why the user is being locked.")
   private String reason;

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

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   public UserLockRequest() {
   }

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