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

org.graylog2.rest.models.system.responses.$AutoValue_SizeBasedRotationStrategyResponse Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.models.system.responses;

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

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

  private final String type;

  private final int maxNumberOfIndices;

  private final long maxSizePerIndex;

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

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

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

  @JsonProperty("max_size_per_index")
  @Override
  public long maxSizePerIndex() {
    return maxSizePerIndex;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy