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

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.annotation.Nullable;

@JsonTypeName("ui.authentication.on-failure")
public class OnFailureAuthenticationData {
   public static final String ON_FAILURE_TYPE = "ui.authentication.on-failure";
   @Nullable
   private String targetUri;

   @Nullable
   @SuppressFBWarnings(justification = "generated code")
   public String getTargetUri() {
      return this.targetUri;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setTargetUri(@Nullable String targetUri) {
      this.targetUri = targetUri;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OnFailureAuthenticationData(targetUri=" + this.getTargetUri() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public OnFailureAuthenticationData(@Nullable String targetUri) {
      this.targetUri = targetUri;
   }

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