org.graylog2.plugin.rest.AutoValue_ApiError Maven / Gradle / Ivy
package org.graylog2.plugin.rest;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ApiError extends ApiError {
private final String message;
AutoValue_ApiError(
String message) {
if (message == null) {
throw new NullPointerException("Null message");
}
this.message = message;
}
@JsonProperty
@Override
public String message() {
return message;
}
@Override
public String toString() {
return "ApiError{"
+ "message=" + message
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ApiError) {
ApiError that = (ApiError) o;
return this.message.equals(that.message());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= message.hashCode();
return h$;
}
}