
org.graylog2.rest.models.alarmcallbacks.AutoValue_AlarmCallbackSummary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog2-rest-models Show documentation
Show all versions of graylog2-rest-models Show documentation
Graylog2 REST API Data Transfer Object Classes
The newest version!
package org.graylog2.rest.models.alarmcallbacks;
import java.util.Date;
import java.util.Map;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AlarmCallbackSummary extends AlarmCallbackSummary {
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_AlarmCallbackSummary(
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
@Override
public String id() {
return id;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "stream_id")
@Override
public String streamId() {
return streamId;
}
@com.fasterxml.jackson.annotation.JsonProperty
@Override
public String type() {
return type;
}
@com.fasterxml.jackson.annotation.JsonProperty
@Override
public Map configuration() {
return configuration;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "created_at")
@Override
public Date createdAt() {
return createdAt;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "creator_user_id")
@Override
public String creatorUserId() {
return creatorUserId;
}
@Override
public String toString() {
return "AlarmCallbackSummary{"
+ "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 AlarmCallbackSummary) {
AlarmCallbackSummary that = (AlarmCallbackSummary) o;
return (this.id.equals(that.id()))
&& (this.streamId.equals(that.streamId()))
&& (this.type.equals(that.type()))
&& (this.configuration.equals(that.configuration()))
&& (this.createdAt.equals(that.createdAt()))
&& (this.creatorUserId.equals(that.creatorUserId()));
}
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy