org.graylog2.rest.models.alarmcallbacks.requests.AutoValue_AlertReceivers Maven / Gradle / Ivy
package org.graylog2.rest.models.alarmcallbacks.requests;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AlertReceivers extends AlertReceivers {
private final List emails;
private final List users;
AutoValue_AlertReceivers(
List emails,
List users) {
if (emails == null) {
throw new NullPointerException("Null emails");
}
this.emails = emails;
if (users == null) {
throw new NullPointerException("Null users");
}
this.users = users;
}
@JsonProperty(value = "emails")
@Override
public List emails() {
return emails;
}
@JsonProperty(value = "users")
@Override
public List users() {
return users;
}
@Override
public String toString() {
return "AlertReceivers{"
+ "emails=" + emails + ", "
+ "users=" + users
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AlertReceivers) {
AlertReceivers that = (AlertReceivers) o;
return (this.emails.equals(that.emails()))
&& (this.users.equals(that.users()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.emails.hashCode();
h *= 1000003;
h ^= this.users.hashCode();
return h;
}
}