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

org.graylog2.datanode.$AutoValue_DataNodeLifecycleEvent Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.datanode;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;

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

  private final String nodeId;

  private final DataNodeLifecycleTrigger trigger;

  $AutoValue_DataNodeLifecycleEvent(
      String nodeId,
      DataNodeLifecycleTrigger trigger) {
    if (nodeId == null) {
      throw new NullPointerException("Null nodeId");
    }
    this.nodeId = nodeId;
    if (trigger == null) {
      throw new NullPointerException("Null trigger");
    }
    this.trigger = trigger;
  }

  @JsonProperty("node_id")
  @Override
  public String nodeId() {
    return nodeId;
  }

  @JsonProperty
  @Override
  public DataNodeLifecycleTrigger trigger() {
    return trigger;
  }

  @Override
  public String toString() {
    return "DataNodeLifecycleEvent{"
        + "nodeId=" + nodeId + ", "
        + "trigger=" + trigger
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DataNodeLifecycleEvent) {
      DataNodeLifecycleEvent that = (DataNodeLifecycleEvent) o;
      return this.nodeId.equals(that.nodeId())
          && this.trigger.equals(that.trigger());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy