com.airbus_cyber_security.graylog.alert.AutoValue_AlertRuleImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-alert-wizard Show documentation
Show all versions of graylog-plugin-alert-wizard Show documentation
Graylog ${project.artifactId} plugin.
package com.airbus_cyber_security.graylog.alert;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
import org.joda.time.DateTime;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AlertRuleImpl extends AlertRuleImpl {
private final @NotNull String title;
private final String streamID;
private final String eventID;
private final String notificationID;
private final DateTime createdAt;
private final String creatorUserId;
private final DateTime lastModified;
private final String description;
private final String conditionType;
private final String secondStreamID;
private final String secondEventID;
private final String pipelineID;
private final String pipelineRuleID;
private final List pipelineFieldRules;
private final String secondPipelineID;
private final String secondPipelineRuleID;
private final List secondPipelineFieldRules;
AutoValue_AlertRuleImpl(
@NotNull String title,
@Nullable String streamID,
@Nullable String eventID,
@Nullable String notificationID,
@Nullable DateTime createdAt,
@Nullable String creatorUserId,
@Nullable DateTime lastModified,
@Nullable String description,
@Nullable String conditionType,
@Nullable String secondStreamID,
@Nullable String secondEventID,
@Nullable String pipelineID,
@Nullable String pipelineRuleID,
@Nullable List pipelineFieldRules,
@Nullable String secondPipelineID,
@Nullable String secondPipelineRuleID,
@Nullable List secondPipelineFieldRules) {
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
this.streamID = streamID;
this.eventID = eventID;
this.notificationID = notificationID;
this.createdAt = createdAt;
this.creatorUserId = creatorUserId;
this.lastModified = lastModified;
this.description = description;
this.conditionType = conditionType;
this.secondStreamID = secondStreamID;
this.secondEventID = secondEventID;
this.pipelineID = pipelineID;
this.pipelineRuleID = pipelineRuleID;
this.pipelineFieldRules = pipelineFieldRules;
this.secondPipelineID = secondPipelineID;
this.secondPipelineRuleID = secondPipelineRuleID;
this.secondPipelineFieldRules = secondPipelineFieldRules;
}
@JsonProperty(value = "title")
@Override
public @NotNull String getTitle() {
return title;
}
@JsonProperty(value = "stream")
@Nullable
@Override
public String getStreamID() {
return streamID;
}
@JsonProperty(value = "event")
@Nullable
@Override
public String getEventID() {
return eventID;
}
@JsonProperty(value = "notification")
@Nullable
@Override
public String getNotificationID() {
return notificationID;
}
@JsonProperty(value = "created_at")
@Nullable
@Override
public DateTime getCreatedAt() {
return createdAt;
}
@JsonProperty(value = "creator_user_id")
@Nullable
@Override
public String getCreatorUserId() {
return creatorUserId;
}
@JsonProperty(value = "last_modified")
@Nullable
@Override
public DateTime getLastModified() {
return lastModified;
}
@JsonProperty(value = "description")
@Nullable
@Override
public String getDescription() {
return description;
}
@JsonProperty(value = "condition_type")
@Nullable
@Override
public String getConditionType() {
return conditionType;
}
@JsonProperty(value = "stream2")
@Nullable
@Override
public String getSecondStreamID() {
return secondStreamID;
}
@JsonProperty(value = "event2")
@Nullable
@Override
public String getSecondEventID() {
return secondEventID;
}
@JsonProperty(value = "pipeline")
@Nullable
@Override
public String getPipelineID() {
return pipelineID;
}
@JsonProperty(value = "pipeline_rule")
@Nullable
@Override
public String getPipelineRuleID() {
return pipelineRuleID;
}
@JsonProperty(value = "pipeline_field_rules")
@Nullable
@Override
public List getPipelineFieldRules() {
return pipelineFieldRules;
}
@JsonProperty(value = "second pipeline")
@Nullable
@Override
public String getSecondPipelineID() {
return secondPipelineID;
}
@JsonProperty(value = "second pipeline_rule")
@Nullable
@Override
public String getSecondPipelineRuleID() {
return secondPipelineRuleID;
}
@JsonProperty(value = "second_pipeline_field_rules")
@Nullable
@Override
public List getSecondPipelineFieldRules() {
return secondPipelineFieldRules;
}
@Override
public String toString() {
return "AlertRuleImpl{"
+ "title=" + title + ", "
+ "streamID=" + streamID + ", "
+ "eventID=" + eventID + ", "
+ "notificationID=" + notificationID + ", "
+ "createdAt=" + createdAt + ", "
+ "creatorUserId=" + creatorUserId + ", "
+ "lastModified=" + lastModified + ", "
+ "description=" + description + ", "
+ "conditionType=" + conditionType + ", "
+ "secondStreamID=" + secondStreamID + ", "
+ "secondEventID=" + secondEventID + ", "
+ "pipelineID=" + pipelineID + ", "
+ "pipelineRuleID=" + pipelineRuleID + ", "
+ "pipelineFieldRules=" + pipelineFieldRules + ", "
+ "secondPipelineID=" + secondPipelineID + ", "
+ "secondPipelineRuleID=" + secondPipelineRuleID + ", "
+ "secondPipelineFieldRules=" + secondPipelineFieldRules
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AlertRuleImpl) {
AlertRuleImpl that = (AlertRuleImpl) o;
return this.title.equals(that.getTitle())
&& (this.streamID == null ? that.getStreamID() == null : this.streamID.equals(that.getStreamID()))
&& (this.eventID == null ? that.getEventID() == null : this.eventID.equals(that.getEventID()))
&& (this.notificationID == null ? that.getNotificationID() == null : this.notificationID.equals(that.getNotificationID()))
&& (this.createdAt == null ? that.getCreatedAt() == null : this.createdAt.equals(that.getCreatedAt()))
&& (this.creatorUserId == null ? that.getCreatorUserId() == null : this.creatorUserId.equals(that.getCreatorUserId()))
&& (this.lastModified == null ? that.getLastModified() == null : this.lastModified.equals(that.getLastModified()))
&& (this.description == null ? that.getDescription() == null : this.description.equals(that.getDescription()))
&& (this.conditionType == null ? that.getConditionType() == null : this.conditionType.equals(that.getConditionType()))
&& (this.secondStreamID == null ? that.getSecondStreamID() == null : this.secondStreamID.equals(that.getSecondStreamID()))
&& (this.secondEventID == null ? that.getSecondEventID() == null : this.secondEventID.equals(that.getSecondEventID()))
&& (this.pipelineID == null ? that.getPipelineID() == null : this.pipelineID.equals(that.getPipelineID()))
&& (this.pipelineRuleID == null ? that.getPipelineRuleID() == null : this.pipelineRuleID.equals(that.getPipelineRuleID()))
&& (this.pipelineFieldRules == null ? that.getPipelineFieldRules() == null : this.pipelineFieldRules.equals(that.getPipelineFieldRules()))
&& (this.secondPipelineID == null ? that.getSecondPipelineID() == null : this.secondPipelineID.equals(that.getSecondPipelineID()))
&& (this.secondPipelineRuleID == null ? that.getSecondPipelineRuleID() == null : this.secondPipelineRuleID.equals(that.getSecondPipelineRuleID()))
&& (this.secondPipelineFieldRules == null ? that.getSecondPipelineFieldRules() == null : this.secondPipelineFieldRules.equals(that.getSecondPipelineFieldRules()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= title.hashCode();
h$ *= 1000003;
h$ ^= (streamID == null) ? 0 : streamID.hashCode();
h$ *= 1000003;
h$ ^= (eventID == null) ? 0 : eventID.hashCode();
h$ *= 1000003;
h$ ^= (notificationID == null) ? 0 : notificationID.hashCode();
h$ *= 1000003;
h$ ^= (createdAt == null) ? 0 : createdAt.hashCode();
h$ *= 1000003;
h$ ^= (creatorUserId == null) ? 0 : creatorUserId.hashCode();
h$ *= 1000003;
h$ ^= (lastModified == null) ? 0 : lastModified.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= (conditionType == null) ? 0 : conditionType.hashCode();
h$ *= 1000003;
h$ ^= (secondStreamID == null) ? 0 : secondStreamID.hashCode();
h$ *= 1000003;
h$ ^= (secondEventID == null) ? 0 : secondEventID.hashCode();
h$ *= 1000003;
h$ ^= (pipelineID == null) ? 0 : pipelineID.hashCode();
h$ *= 1000003;
h$ ^= (pipelineRuleID == null) ? 0 : pipelineRuleID.hashCode();
h$ *= 1000003;
h$ ^= (pipelineFieldRules == null) ? 0 : pipelineFieldRules.hashCode();
h$ *= 1000003;
h$ ^= (secondPipelineID == null) ? 0 : secondPipelineID.hashCode();
h$ *= 1000003;
h$ ^= (secondPipelineRuleID == null) ? 0 : secondPipelineRuleID.hashCode();
h$ *= 1000003;
h$ ^= (secondPipelineFieldRules == null) ? 0 : secondPipelineFieldRules.hashCode();
return h$;
}
}