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

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;

@JsonTypeName("user.temporary-lock")
public class UserTempLockData {
   public static final String USER_TEMPORARY_LOCK_TYPE = "user.temporary-lock";
   @Schema(description = "The date until the user is temporarily locked.")
   private Date temporaryLockedUntil;

   @SuppressFBWarnings(justification = "generated code")
   public Date getTemporaryLockedUntil() {
      return this.temporaryLockedUntil;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setTemporaryLockedUntil(Date temporaryLockedUntil) {
      this.temporaryLockedUntil = temporaryLockedUntil;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "UserTempLockData(temporaryLockedUntil=" + this.getTemporaryLockedUntil() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public UserTempLockData(Date temporaryLockedUntil) {
      this.temporaryLockedUntil = temporaryLockedUntil;
   }
}
