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

org.graylog.enterprise.AutoValue_EnterpriseLicenseInfo Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.enterprise;

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

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EnterpriseLicenseInfo extends EnterpriseLicenseInfo {

  private final EnterpriseLicenseInfo.Status licenseStatus;

  AutoValue_EnterpriseLicenseInfo(
      EnterpriseLicenseInfo.Status licenseStatus) {
    if (licenseStatus == null) {
      throw new NullPointerException("Null licenseStatus");
    }
    this.licenseStatus = licenseStatus;
  }

  @JsonProperty("license_status")
  @Override
  public EnterpriseLicenseInfo.Status licenseStatus() {
    return licenseStatus;
  }

  @Override
  public String toString() {
    return "EnterpriseLicenseInfo{"
        + "licenseStatus=" + licenseStatus
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EnterpriseLicenseInfo) {
      EnterpriseLicenseInfo that = (EnterpriseLicenseInfo) o;
      return this.licenseStatus.equals(that.licenseStatus());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy