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

org.graylog2.contentpacks.model.entities.$AutoValue_StreamAlertConditionEntity Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.graylog2.contentpacks.model.entities.references.ReferenceMap;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_StreamAlertConditionEntity extends StreamAlertConditionEntity {

  private final @NotBlank String type;

  private final @NotBlank ValueReference title;

  private final @NotNull ReferenceMap parameters;

  $AutoValue_StreamAlertConditionEntity(
      @NotBlank String type,
      @NotBlank ValueReference title,
      @NotNull ReferenceMap parameters) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (parameters == null) {
      throw new NullPointerException("Null parameters");
    }
    this.parameters = parameters;
  }

  @JsonProperty("type")
  @Override
  public @NotBlank String type() {
    return type;
  }

  @JsonProperty("title")
  @Override
  public @NotBlank ValueReference title() {
    return title;
  }

  @JsonProperty("parameters")
  @Override
  public @NotNull ReferenceMap parameters() {
    return parameters;
  }

  @Override
  public String toString() {
    return "StreamAlertConditionEntity{"
        + "type=" + type + ", "
        + "title=" + title + ", "
        + "parameters=" + parameters
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StreamAlertConditionEntity) {
      StreamAlertConditionEntity that = (StreamAlertConditionEntity) o;
      return this.type.equals(that.type())
          && this.title.equals(that.title())
          && this.parameters.equals(that.parameters());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= parameters.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy