org.graylog2.rest.models.system.indexer.responses.$AutoValue_IndexerOverview Maven / Gradle / Ivy
package org.graylog2.rest.models.system.indexer.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.processing.Generated;
import org.graylog2.rest.models.count.responses.MessageCountResponse;
import org.graylog2.rest.models.system.deflector.responses.DeflectorSummary;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_IndexerOverview extends IndexerOverview {
private final DeflectorSummary deflectorSummary;
private final IndexerClusterOverview indexerCluster;
private final MessageCountResponse messageCountResponse;
private final Map indices;
$AutoValue_IndexerOverview(
DeflectorSummary deflectorSummary,
IndexerClusterOverview indexerCluster,
MessageCountResponse messageCountResponse,
Map indices) {
if (deflectorSummary == null) {
throw new NullPointerException("Null deflectorSummary");
}
this.deflectorSummary = deflectorSummary;
if (indexerCluster == null) {
throw new NullPointerException("Null indexerCluster");
}
this.indexerCluster = indexerCluster;
if (messageCountResponse == null) {
throw new NullPointerException("Null messageCountResponse");
}
this.messageCountResponse = messageCountResponse;
if (indices == null) {
throw new NullPointerException("Null indices");
}
this.indices = indices;
}
@JsonProperty("deflector")
@Override
public DeflectorSummary deflectorSummary() {
return deflectorSummary;
}
@JsonProperty("indexer_cluster")
@Override
public IndexerClusterOverview indexerCluster() {
return indexerCluster;
}
@JsonProperty("counts")
@Override
public MessageCountResponse messageCountResponse() {
return messageCountResponse;
}
@JsonProperty("indices")
@Override
public Map indices() {
return indices;
}
@Override
public String toString() {
return "IndexerOverview{"
+ "deflectorSummary=" + deflectorSummary + ", "
+ "indexerCluster=" + indexerCluster + ", "
+ "messageCountResponse=" + messageCountResponse + ", "
+ "indices=" + indices
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IndexerOverview) {
IndexerOverview that = (IndexerOverview) o;
return this.deflectorSummary.equals(that.deflectorSummary())
&& this.indexerCluster.equals(that.indexerCluster())
&& this.messageCountResponse.equals(that.messageCountResponse())
&& this.indices.equals(that.indices());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= deflectorSummary.hashCode();
h$ *= 1000003;
h$ ^= indexerCluster.hashCode();
h$ *= 1000003;
h$ ^= messageCountResponse.hashCode();
h$ *= 1000003;
h$ ^= indices.hashCode();
return h$;
}
}