All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.airbus_cyber_security.graylog.alert.AutoValue_AlertRuleStreamImpl Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version


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;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AlertRuleStreamImpl extends AlertRuleStreamImpl {

  private final String ID;

  private final @NotNull String matchingType;

  private final List fieldRules;

  AutoValue_AlertRuleStreamImpl(
      @Nullable String ID,
      @NotNull String matchingType,
      @Nullable List fieldRules) {
    this.ID = ID;
    if (matchingType == null) {
      throw new NullPointerException("Null matchingType");
    }
    this.matchingType = matchingType;
    this.fieldRules = fieldRules;
  }

  @JsonProperty(value = "id")
  @Nullable
  @Override
  public String getID() {
    return ID;
  }

  @JsonProperty(value = "matching_type")
  @Override
  public @NotNull String getMatchingType() {
    return matchingType;
  }

  @JsonProperty(value = "field_rule")
  @Nullable
  @Override
  public List getFieldRules() {
    return fieldRules;
  }

  @Override
  public String toString() {
    return "AlertRuleStreamImpl{"
         + "ID=" + ID + ", "
         + "matchingType=" + matchingType + ", "
         + "fieldRules=" + fieldRules
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AlertRuleStreamImpl) {
      AlertRuleStreamImpl that = (AlertRuleStreamImpl) o;
      return (this.ID == null ? that.getID() == null : this.ID.equals(that.getID()))
          && this.matchingType.equals(that.getMatchingType())
          && (this.fieldRules == null ? that.getFieldRules() == null : this.fieldRules.equals(that.getFieldRules()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (ID == null) ? 0 : ID.hashCode();
    h$ *= 1000003;
    h$ ^= matchingType.hashCode();
    h$ *= 1000003;
    h$ ^= (fieldRules == null) ? 0 : fieldRules.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy