org.graylog.plugins.sidecar.rest.requests.AutoValue_BulkActionsRequest Maven / Gradle / Ivy
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$;
}
}