001// Generated by delombok at Sun Apr 14 14:59:49 CEST 2024
002/*
003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.webhook.messaging.nlp;
024
025import com.restfb.Facebook;
026import java.io.Serializable;
027
028public class NlpError implements Serializable {
029  @Facebook
030  private String code;
031  @Facebook
032  private String message;
033
034  @java.lang.Override
035  @java.lang.SuppressWarnings("all")
036  public java.lang.String toString() {
037    return "NlpError(code=" + this.getCode() + ", message=" + this.getMessage() + ")";
038  }
039
040  @java.lang.Override
041  @java.lang.SuppressWarnings("all")
042  public boolean equals(final java.lang.Object o) {
043    if (o == this) return true;
044    if (!(o instanceof NlpError)) return false;
045    final NlpError other = (NlpError) o;
046    if (!other.canEqual((java.lang.Object) this)) return false;
047    final java.lang.Object this$code = this.getCode();
048    final java.lang.Object other$code = other.getCode();
049    if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
050    final java.lang.Object this$message = this.getMessage();
051    final java.lang.Object other$message = other.getMessage();
052    if (this$message == null ? other$message != null : !this$message.equals(other$message)) return false;
053    return true;
054  }
055
056  @java.lang.SuppressWarnings("all")
057  protected boolean canEqual(final java.lang.Object other) {
058    return other instanceof NlpError;
059  }
060
061  @java.lang.Override
062  @java.lang.SuppressWarnings("all")
063  public int hashCode() {
064    final int PRIME = 59;
065    int result = 1;
066    final java.lang.Object $code = this.getCode();
067    result = result * PRIME + ($code == null ? 43 : $code.hashCode());
068    final java.lang.Object $message = this.getMessage();
069    result = result * PRIME + ($message == null ? 43 : $message.hashCode());
070    return result;
071  }
072
073  @java.lang.SuppressWarnings("all")
074  public String getCode() {
075    return this.code;
076  }
077
078  @java.lang.SuppressWarnings("all")
079  public void setCode(final String code) {
080    this.code = code;
081  }
082
083  @java.lang.SuppressWarnings("all")
084  public String getMessage() {
085    return this.message;
086  }
087
088  @java.lang.SuppressWarnings("all")
089  public void setMessage(final String message) {
090    this.message = message;
091  }
092}