package com.airlock.iam.authentication.infrastructure.transfer.response;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

@JsonTypeName("authentication.airlock-2fa.device.data")
public final class Airlock2FADeviceEditAuthResponseAttributesData {
   public static final String JSON_API_ID_DESCRIPTION = "The Airlock 2FA device ID";
   public static final String AIRLOCK_2FA_DEVICE_EDIT_AUTH_TYPE = "authentication.airlock-2fa.device.data";
   @NotNull
   @Schema(description = "Current value of display name.")
   private final String displayName;

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "Airlock2FADeviceEditAuthResponseAttributesData(displayName=" + this.getDisplayName() + ")";
   }
}
