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

org.graylog2.indexer.management.$AutoValue_IndexManagementConfig Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.indexer.management;

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

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

  private final String rotationStrategy;

  private final String retentionStrategy;

  $AutoValue_IndexManagementConfig(
      String rotationStrategy,
      String retentionStrategy) {
    if (rotationStrategy == null) {
      throw new NullPointerException("Null rotationStrategy");
    }
    this.rotationStrategy = rotationStrategy;
    if (retentionStrategy == null) {
      throw new NullPointerException("Null retentionStrategy");
    }
    this.retentionStrategy = retentionStrategy;
  }

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

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

  @Override
  public String toString() {
    return "IndexManagementConfig{"
         + "rotationStrategy=" + rotationStrategy + ", "
         + "retentionStrategy=" + retentionStrategy
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexManagementConfig) {
      IndexManagementConfig that = (IndexManagementConfig) o;
      return this.rotationStrategy.equals(that.rotationStrategy())
          && this.retentionStrategy.equals(that.retentionStrategy());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy