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

org.graylog2.migrations.$AutoValue_V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration_MigrationCompleted Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration_MigrationCompleted extends V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration.MigrationCompleted {

  private final Set updatedIndexSetIds;

  private final Set skippedIndexSetIds;

  private final String defaultIndexSet;

  $AutoValue_V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration_MigrationCompleted(
      Set updatedIndexSetIds,
      Set skippedIndexSetIds,
      String defaultIndexSet) {
    if (updatedIndexSetIds == null) {
      throw new NullPointerException("Null updatedIndexSetIds");
    }
    this.updatedIndexSetIds = updatedIndexSetIds;
    if (skippedIndexSetIds == null) {
      throw new NullPointerException("Null skippedIndexSetIds");
    }
    this.skippedIndexSetIds = skippedIndexSetIds;
    if (defaultIndexSet == null) {
      throw new NullPointerException("Null defaultIndexSet");
    }
    this.defaultIndexSet = defaultIndexSet;
  }

  @JsonProperty("updated_index_set_ids")
  @Override
  public Set updatedIndexSetIds() {
    return updatedIndexSetIds;
  }

  @JsonProperty("skipped_index_set_ids")
  @Override
  public Set skippedIndexSetIds() {
    return skippedIndexSetIds;
  }

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

  @Override
  public String toString() {
    return "MigrationCompleted{"
        + "updatedIndexSetIds=" + updatedIndexSetIds + ", "
        + "skippedIndexSetIds=" + skippedIndexSetIds + ", "
        + "defaultIndexSet=" + defaultIndexSet
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration.MigrationCompleted) {
      V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration.MigrationCompleted that = (V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration.MigrationCompleted) o;
      return this.updatedIndexSetIds.equals(that.updatedIndexSetIds())
          && this.skippedIndexSetIds.equals(that.skippedIndexSetIds())
          && this.defaultIndexSet.equals(that.defaultIndexSet());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= updatedIndexSetIds.hashCode();
    h$ *= 1000003;
    h$ ^= skippedIndexSetIds.hashCode();
    h$ *= 1000003;
    h$ ^= defaultIndexSet.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy