org.graylog2.alarmcallbacks.AutoValue_AlarmCallbackConfigurationAVImpl Maven / Gradle / Ivy
package org.graylog2.alarmcallbacks;
import java.util.Date;
import java.util.Map;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AlarmCallbackConfigurationAVImpl extends AlarmCallbackConfigurationAVImpl {
private final String id;
private final String streamId;
private final String type;
private final Map configuration;
private final Date createdAt;
private final String creatorUserId;
AutoValue_AlarmCallbackConfigurationAVImpl(
String id,
String streamId,
String type,
Map configuration,
Date createdAt,
String creatorUserId) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (streamId == null) {
throw new NullPointerException("Null streamId");
}
this.streamId = streamId;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (configuration == null) {
throw new NullPointerException("Null configuration");
}
this.configuration = configuration;
if (createdAt == null) {
throw new NullPointerException("Null createdAt");
}
this.createdAt = createdAt;
if (creatorUserId == null) {
throw new NullPointerException("Null creatorUserId");
}
this.creatorUserId = creatorUserId;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "_id")
@org.mongojack.ObjectId
@Override
public String getId() {
return id;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "stream_id")
@Override
public String getStreamId() {
return streamId;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "type")
@Override
public String getType() {
return type;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "configuration")
@Override
public Map getConfiguration() {
return configuration;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "created_at")
@Override
public Date getCreatedAt() {
return createdAt;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "creator_user_id")
@Override
public String getCreatorUserId() {
return creatorUserId;
}
@Override
public String toString() {
return "AlarmCallbackConfigurationAVImpl{"
+ "id=" + id + ", "
+ "streamId=" + streamId + ", "
+ "type=" + type + ", "
+ "configuration=" + configuration + ", "
+ "createdAt=" + createdAt + ", "
+ "creatorUserId=" + creatorUserId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AlarmCallbackConfigurationAVImpl) {
AlarmCallbackConfigurationAVImpl that = (AlarmCallbackConfigurationAVImpl) o;
return (this.id.equals(that.getId()))
&& (this.streamId.equals(that.getStreamId()))
&& (this.type.equals(that.getType()))
&& (this.configuration.equals(that.getConfiguration()))
&& (this.createdAt.equals(that.getCreatedAt()))
&& (this.creatorUserId.equals(that.getCreatorUserId()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= id.hashCode();
h *= 1000003;
h ^= streamId.hashCode();
h *= 1000003;
h ^= type.hashCode();
h *= 1000003;
h ^= configuration.hashCode();
h *= 1000003;
h ^= createdAt.hashCode();
h *= 1000003;
h ^= creatorUserId.hashCode();
return h;
}
}