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 UserValidityUntilRequest {
   @NotNull
   @Schema(description = "The date until the user will be valid.")
   private Date until;

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "UserValidityUntilRequest(until=" + this.getUntil() + ")";
   }

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

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