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

org.graylog2.streams.AutoValue_OutputImpl Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
package org.graylog2.streams;

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

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

  private final String id;

  private final String title;

  private final String type;

  private final String creatorUserId;

  private final Map configuration;

  private final Date createdAt;

  private final String contentPack;

  AutoValue_OutputImpl(
      String id,
      String title,
      String type,
      String creatorUserId,
      Map configuration,
      Date createdAt,
      @Nullable String contentPack) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (creatorUserId == null) {
      throw new NullPointerException("Null creatorUserId");
    }
    this.creatorUserId = creatorUserId;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
    if (createdAt == null) {
      throw new NullPointerException("Null createdAt");
    }
    this.createdAt = createdAt;
    this.contentPack = contentPack;
  }

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

  @JsonProperty("title")
  @Override
  public String getTitle() {
    return title;
  }

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

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

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

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

  @JsonProperty("content_pack")
  @Nullable
  @Override
  public String getContentPack() {
    return contentPack;
  }

  @Override
  public String toString() {
    return "OutputImpl{"
        + "id=" + id + ", "
        + "title=" + title + ", "
        + "type=" + type + ", "
        + "creatorUserId=" + creatorUserId + ", "
        + "configuration=" + configuration + ", "
        + "createdAt=" + createdAt + ", "
        + "contentPack=" + contentPack
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof OutputImpl) {
      OutputImpl that = (OutputImpl) o;
      return this.id.equals(that.getId())
          && this.title.equals(that.getTitle())
          && this.type.equals(that.getType())
          && this.creatorUserId.equals(that.getCreatorUserId())
          && this.configuration.equals(that.getConfiguration())
          && this.createdAt.equals(that.getCreatedAt())
          && (this.contentPack == null ? that.getContentPack() == null : this.contentPack.equals(that.getContentPack()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= id.hashCode();
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= creatorUserId.hashCode();
    h$ *= 1000003;
    h$ ^= configuration.hashCode();
    h$ *= 1000003;
    h$ ^= createdAt.hashCode();
    h$ *= 1000003;
    h$ ^= (contentPack == null) ? 0 : contentPack.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy