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;
import java.util.Date;

public final class UserValidityFromRequest {
   @NotNull
   @Schema(type = "string", description = "The date from which the user is valid.")
   private Date from;

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "UserValidityFromRequest(from=" + this.getFrom() + ")";
   }

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

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