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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.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_StreamAlarmCallbackEntity extends StreamAlarmCallbackEntity {

  private final @NotBlank String type;

  private final @NotBlank ValueReference title;

  private final String streamId;

  private final @NotNull ReferenceMap configuration;

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

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

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

  @JsonProperty("stream_id")
  @Override
  public String streamId() {
    return streamId;
  }

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

  @Override
  public String toString() {
    return "StreamAlarmCallbackEntity{"
        + "type=" + type + ", "
        + "title=" + title + ", "
        + "streamId=" + streamId + ", "
        + "configuration=" + configuration
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy