org.graylog.plugins.pipelineprocessor.events.AutoValue_PipelineConnectionsChangedEvent Maven / Gradle / Ivy
package org.graylog.plugins.pipelineprocessor.events;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PipelineConnectionsChangedEvent extends PipelineConnectionsChangedEvent {
private final String streamId;
private final Set pipelineIds;
AutoValue_PipelineConnectionsChangedEvent(
String streamId,
Set pipelineIds) {
if (streamId == null) {
throw new NullPointerException("Null streamId");
}
this.streamId = streamId;
if (pipelineIds == null) {
throw new NullPointerException("Null pipelineIds");
}
this.pipelineIds = pipelineIds;
}
@JsonProperty("stream_id")
@Override
public String streamId() {
return streamId;
}
@JsonProperty("pipeline_ids")
@Override
public Set pipelineIds() {
return pipelineIds;
}
@Override
public String toString() {
return "PipelineConnectionsChangedEvent{"
+ "streamId=" + streamId + ", "
+ "pipelineIds=" + pipelineIds
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PipelineConnectionsChangedEvent) {
PipelineConnectionsChangedEvent that = (PipelineConnectionsChangedEvent) o;
return this.streamId.equals(that.streamId())
&& this.pipelineIds.equals(that.pipelineIds());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= streamId.hashCode();
h$ *= 1000003;
h$ ^= pipelineIds.hashCode();
return h$;
}
}