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

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

There is a newer version: 6.0.1
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_BulkActionRequest extends BulkActionRequest {

  private final String sidecarId;

  private final List collectorIds;

  AutoValue_BulkActionRequest(
      String sidecarId,
      List collectorIds) {
    if (sidecarId == null) {
      throw new NullPointerException("Null sidecarId");
    }
    this.sidecarId = sidecarId;
    if (collectorIds == null) {
      throw new NullPointerException("Null collectorIds");
    }
    this.collectorIds = collectorIds;
  }

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

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

  @Override
  public String toString() {
    return "BulkActionRequest{"
        + "sidecarId=" + sidecarId + ", "
        + "collectorIds=" + collectorIds
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BulkActionRequest) {
      BulkActionRequest that = (BulkActionRequest) o;
      return this.sidecarId.equals(that.sidecarId())
          && this.collectorIds.equals(that.collectorIds());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy