annotations.org.graylog2.restclient.models.AutoValue_UsageStatsConfigurationResponse Maven / Gradle / Ivy
The newest version!
package org.graylog2.restclient.models;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UsageStatsConfigurationResponse extends UsageStatsConfigurationResponse {
private final boolean enabled;
AutoValue_UsageStatsConfigurationResponse(
boolean enabled) {
this.enabled = enabled;
}
@com.fasterxml.jackson.annotation.JsonProperty(value = "enabled")
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public String toString() {
return "UsageStatsConfigurationResponse{"
+ "enabled=" + enabled
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UsageStatsConfigurationResponse) {
UsageStatsConfigurationResponse that = (UsageStatsConfigurationResponse) o;
return (this.enabled == that.isEnabled());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= enabled ? 1231 : 1237;
return h;
}
}