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

org.graylog2.alarmcallbacks.AutoValue_AlarmCallbackConfigurationAVImpl Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version

package org.graylog2.alarmcallbacks;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
import java.util.Map;
import javax.annotation.Generated;
import org.mongojack.ObjectId;

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

  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_AlarmCallbackConfigurationAVImpl(
      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;
  }

  @JsonProperty(value = "_id")
  @ObjectId
  @Override
  public String getId() {
    return id;
  }

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

  @JsonProperty(value = "type")
  @Override
  public String getType() {
    return type;
  }

  @JsonProperty(value = "configuration")
  @Override
  public Map getConfiguration() {
    return configuration;
  }

  @JsonProperty(value = "created_at")
  @Override
  public Date getCreatedAt() {
    return createdAt;
  }

  @JsonProperty(value = "creator_user_id")
  @Override
  public String getCreatorUserId() {
    return creatorUserId;
  }

  @Override
  public String toString() {
    return "AlarmCallbackConfigurationAVImpl{"
        + "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 AlarmCallbackConfigurationAVImpl) {
      AlarmCallbackConfigurationAVImpl that = (AlarmCallbackConfigurationAVImpl) o;
      return (this.id.equals(that.getId()))
           && (this.streamId.equals(that.getStreamId()))
           && (this.type.equals(that.getType()))
           && (this.configuration.equals(that.getConfiguration()))
           && (this.createdAt.equals(that.getCreatedAt()))
           && (this.creatorUserId.equals(that.getCreatorUserId()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.id.hashCode();
    h *= 1000003;
    h ^= this.streamId.hashCode();
    h *= 1000003;
    h ^= this.type.hashCode();
    h *= 1000003;
    h ^= this.configuration.hashCode();
    h *= 1000003;
    h ^= this.createdAt.hashCode();
    h *= 1000003;
    h ^= this.creatorUserId.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy