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

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

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

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

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

  private final String contentPackId;

  private final boolean installedContentPack;

  private final boolean uninstalledPreviousRevision;

  $AutoValue_V20230601104500_AddSourcesPageV2_MigrationCompleted(
      String contentPackId,
      boolean installedContentPack,
      boolean uninstalledPreviousRevision) {
    if (contentPackId == null) {
      throw new NullPointerException("Null contentPackId");
    }
    this.contentPackId = contentPackId;
    this.installedContentPack = installedContentPack;
    this.uninstalledPreviousRevision = uninstalledPreviousRevision;
  }

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

  @JsonProperty("installed_content_pack")
  @Override
  public boolean installedContentPack() {
    return installedContentPack;
  }

  @JsonProperty("uninstalled_previous_revision")
  @Override
  public boolean uninstalledPreviousRevision() {
    return uninstalledPreviousRevision;
  }

  @Override
  public String toString() {
    return "MigrationCompleted{"
        + "contentPackId=" + contentPackId + ", "
        + "installedContentPack=" + installedContentPack + ", "
        + "uninstalledPreviousRevision=" + uninstalledPreviousRevision
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof V20230601104500_AddSourcesPageV2.MigrationCompleted) {
      V20230601104500_AddSourcesPageV2.MigrationCompleted that = (V20230601104500_AddSourcesPageV2.MigrationCompleted) o;
      return this.contentPackId.equals(that.contentPackId())
          && this.installedContentPack == that.installedContentPack()
          && this.uninstalledPreviousRevision == that.uninstalledPreviousRevision();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= contentPackId.hashCode();
    h$ *= 1000003;
    h$ ^= installedContentPack ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= uninstalledPreviousRevision ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy