package com.airlock.iam.techclientreg.api.infrastructure.transfer.response;

import com.airlock.iam.flow.api.infrastructure.transfer.response.FlowResultData;
import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Nullable;
import java.util.HashMap;
import java.util.Map;

@JsonTypeName("technical-client-registration.session")
@Schema(ref = "#/components/schemas/TechClientRegFlowResultDataOverride")
public final class TechClientRegFlowResultData implements FlowResultData {
   static final String TECH_CLIENT_REGISTRATION_SESSION_TYPE = "technical-client-registration.session";
   @Nullable
   private String nextStep;
   private Map<String, Object> additionalAttributes = new HashMap<>();

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public Map<String, Object> getAdditionalAttributes() {
      return this.additionalAttributes;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public void setAdditionalAttributes(Map<String, Object> additionalAttributes) {
      this.additionalAttributes = additionalAttributes;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "TechClientRegFlowResultData(nextStep=" + this.getNextStep() + ", additionalAttributes=" + this.getAdditionalAttributes() + ")";
   }
}
