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

org.graylog.plugins.sidecar.rest.requests.AutoValue_BulkActionsRequest Maven / Gradle / Ivy

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

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

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

  private final String action;

  private final List collectors;

  AutoValue_BulkActionsRequest(
      String action,
      List collectors) {
    if (action == null) {
      throw new NullPointerException("Null action");
    }
    this.action = action;
    if (collectors == null) {
      throw new NullPointerException("Null collectors");
    }
    this.collectors = collectors;
  }

  @JsonProperty
  @Override
  public String action() {
    return action;
  }

  @JsonProperty
  @Override
  public List collectors() {
    return collectors;
  }

  @Override
  public String toString() {
    return "BulkActionsRequest{"
        + "action=" + action + ", "
        + "collectors=" + collectors
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BulkActionsRequest) {
      BulkActionsRequest that = (BulkActionsRequest) o;
      return this.action.equals(that.action())
          && this.collectors.equals(that.collectors());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy