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

org.graylog.plugins.sidecar.rest.models.AutoValue_CollectorAction Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.sidecar.rest.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.processing.Generated;

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

  private final String collectorId;

  private final Map properties;

  AutoValue_CollectorAction(
      String collectorId,
      Map properties) {
    if (collectorId == null) {
      throw new NullPointerException("Null collectorId");
    }
    this.collectorId = collectorId;
    if (properties == null) {
      throw new NullPointerException("Null properties");
    }
    this.properties = properties;
  }

  @JsonProperty("collector_id")
  @Override
  public String collectorId() {
    return collectorId;
  }

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

  @Override
  public String toString() {
    return "CollectorAction{"
        + "collectorId=" + collectorId + ", "
        + "properties=" + properties
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CollectorAction) {
      CollectorAction that = (CollectorAction) o;
      return this.collectorId.equals(that.collectorId())
          && this.properties.equals(that.properties());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= collectorId.hashCode();
    h$ *= 1000003;
    h$ ^= properties.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy