package com.airlock.iam.login.rest.infrastructure.transfer;

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("flow.information")
public final class FlowInformationData {
   public static final String TYPE = "flow.information";
   @NotNull
   @Schema(description = "Type of the current flow.")
   private FlowInformationType flowType;
   @NotNull
   @Schema(description = "The next step action.")
   private String nextStep;

   @SuppressFBWarnings(justification = "generated code")
   public FlowInformationType getFlowType() {
      return this.flowType;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public void setFlowType(FlowInformationType flowType) {
      this.flowType = flowType;
   }

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "FlowInformationData(flowType=" + this.getFlowType() + ", nextStep=" + this.getNextStep() + ")";
   }
}
