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

org.graylog2.contentpacks.model.entities.$AutoValue_PipelineEntity 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 java.util.Set;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

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

  private final ValueReference title;

  @Nullable
  private final ValueReference description;

  private final ValueReference source;

  private final Set connectedStreams;

  $AutoValue_PipelineEntity(
      ValueReference title,
      @Nullable ValueReference description,
      ValueReference source,
      Set connectedStreams) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    this.description = description;
    if (source == null) {
      throw new NullPointerException("Null source");
    }
    this.source = source;
    if (connectedStreams == null) {
      throw new NullPointerException("Null connectedStreams");
    }
    this.connectedStreams = connectedStreams;
  }

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

  @JsonProperty("description")
  @Nullable
  @Override
  public ValueReference description() {
    return description;
  }

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

  @JsonProperty("connected_streams")
  @Override
  public Set connectedStreams() {
    return connectedStreams;
  }

  @Override
  public String toString() {
    return "PipelineEntity{"
        + "title=" + title + ", "
        + "description=" + description + ", "
        + "source=" + source + ", "
        + "connectedStreams=" + connectedStreams
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PipelineEntity) {
      PipelineEntity that = (PipelineEntity) o;
      return this.title.equals(that.title())
          && (this.description == null ? that.description() == null : this.description.equals(that.description()))
          && this.source.equals(that.source())
          && this.connectedStreams.equals(that.connectedStreams());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= (description == null) ? 0 : description.hashCode();
    h$ *= 1000003;
    h$ ^= source.hashCode();
    h$ *= 1000003;
    h$ ^= connectedStreams.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy