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

org.graylog2.indexer.retention.strategies.$AutoValue_DeletionRetentionStrategyConfig Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.indexer.retention.strategies;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_DeletionRetentionStrategyConfig extends DeletionRetentionStrategyConfig {

  private final String type;

  private final int maxNumberOfIndices;

  $AutoValue_DeletionRetentionStrategyConfig(
      String type,
      int maxNumberOfIndices) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    this.maxNumberOfIndices = maxNumberOfIndices;
  }

  @JsonProperty("type")
  @Override
  public String type() {
    return type;
  }

  @JsonProperty("max_number_of_indices")
  @Override
  public int maxNumberOfIndices() {
    return maxNumberOfIndices;
  }

  @Override
  public String toString() {
    return "DeletionRetentionStrategyConfig{"
        + "type=" + type + ", "
        + "maxNumberOfIndices=" + maxNumberOfIndices
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DeletionRetentionStrategyConfig) {
      DeletionRetentionStrategyConfig that = (DeletionRetentionStrategyConfig) o;
      return this.type.equals(that.type())
          && this.maxNumberOfIndices == that.maxNumberOfIndices();
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy