package com.airlock.iam.saml2.domain.model.session;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public final class FlowFederationSessionCookieValue {
   private final String value;

   public static FlowFederationSessionCookieValue federationSessionCookieValue(String cookieValue) {
      return new FlowFederationSessionCookieValue(cookieValue);
   }

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "FlowFederationSessionCookieValue(value=" + this.getValue() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   private FlowFederationSessionCookieValue(String value) {
      this.value = value;
   }
}
