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

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public final class PasswordAuthenticationRequest {
   @NotNull
   @NotBlank
   private String username;
   @NotNull
   private String password;

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "PasswordAuthenticationRequest(username=" + this.getUsername() + ", password=" + this.getPassword() + ")";
   }
}
