package com.airlock.iam.publicselfservice.infrastructure.transfer.request;

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

public final class SetPasswordRequest {
   @NotNull
   @Schema(minLength = 1, maxLength = 100000)
   @Size(min = 1, max = 100000)
   private String newPassword;

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "SetPasswordRequest(newPassword=" + this.getNewPassword() + ")";
   }
}
