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;

public class UserActiveAuthenticationMethodRequest {
   @NotNull
   @Schema(
      description = "The new active authentication method. Allowed values are configurable, defaults are: <ul> <li>PASSWORD</li> <li>VASCO</li> <li>CRONTO</li> <li>SECURID</li> <li>MTAN</li> <li>OATH_OTP</li> <li>MATRIX</li> <li>EMAILOTP</li> <li>CERT</li> </ul> This list is configurable in REST API Configuration - User Provisioning Settings - Allowed Active Authentication Methods."
   )
   private String method;

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "UserActiveAuthenticationMethodRequest(method=" + this.getMethod() + ")";
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public UserActiveAuthenticationMethodRequest(String method) {
      this.method = method;
   }
}
