org.graylog.freeenterprise.AutoValue_FreeLicenseInfo Maven / Gradle / Ivy
package org.graylog.freeenterprise;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_FreeLicenseInfo extends FreeLicenseInfo {
private final FreeLicenseInfo.Status licenseStatus;
AutoValue_FreeLicenseInfo(
FreeLicenseInfo.Status licenseStatus) {
if (licenseStatus == null) {
throw new NullPointerException("Null licenseStatus");
}
this.licenseStatus = licenseStatus;
}
@JsonProperty("license_status")
@Override
public FreeLicenseInfo.Status licenseStatus() {
return licenseStatus;
}
@Override
public String toString() {
return "FreeLicenseInfo{"
+ "licenseStatus=" + licenseStatus
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof FreeLicenseInfo) {
FreeLicenseInfo that = (FreeLicenseInfo) o;
return this.licenseStatus.equals(that.licenseStatus());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= licenseStatus.hashCode();
return h$;
}
}