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

import com.fasterxml.jackson.annotation.JsonProperty;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public class OAuth2ErrorData {
   private String error;
   @JsonProperty("error_description")
   private String errorDescription;

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

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OAuth2ErrorData(error=" + this.getError() + ", errorDescription=" + this.getErrorDescription() + ")";
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public OAuth2ErrorData(String error, String errorDescription) {
      this.error = error;
      this.errorDescription = errorDescription;
   }
}
