All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.rest.resources.streams.responses.AutoValue_AlertConditionTestResponse_ErrorMessage Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.resources.streams.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AlertConditionTestResponse_ErrorMessage extends AlertConditionTestResponse.ErrorMessage {

  private final String type;

  private final String message;

  AutoValue_AlertConditionTestResponse_ErrorMessage(
      String type,
      @Nullable String message) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    this.message = message;
  }

  @JsonProperty("type")
  @Override
  public String type() {
    return type;
  }

  @JsonProperty("message")
  @Nullable
  @Override
  public String message() {
    return message;
  }

  @Override
  public String toString() {
    return "ErrorMessage{"
        + "type=" + type + ", "
        + "message=" + message
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AlertConditionTestResponse.ErrorMessage) {
      AlertConditionTestResponse.ErrorMessage that = (AlertConditionTestResponse.ErrorMessage) o;
      return this.type.equals(that.type())
          && (this.message == null ? that.message() == null : this.message.equals(that.message()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= (message == null) ? 0 : message.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy