com.spotify.docker.client.messages.AutoValue_MemoryStats Maven / Gradle / Ivy
package com.spotify.docker.client.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MemoryStats extends MemoryStats {
private final MemoryStats.Stats stats;
private final Long maxUsage;
private final Long usage;
private final Long failcnt;
private final Long limit;
AutoValue_MemoryStats(
MemoryStats.Stats stats,
Long maxUsage,
Long usage,
Long failcnt,
Long limit) {
if (stats == null) {
throw new NullPointerException("Null stats");
}
this.stats = stats;
if (maxUsage == null) {
throw new NullPointerException("Null maxUsage");
}
this.maxUsage = maxUsage;
if (usage == null) {
throw new NullPointerException("Null usage");
}
this.usage = usage;
if (failcnt == null) {
throw new NullPointerException("Null failcnt");
}
this.failcnt = failcnt;
if (limit == null) {
throw new NullPointerException("Null limit");
}
this.limit = limit;
}
@JsonProperty(value = "stats")
@Override
public MemoryStats.Stats stats() {
return stats;
}
@JsonProperty(value = "max_usage")
@Override
public Long maxUsage() {
return maxUsage;
}
@JsonProperty(value = "usage")
@Override
public Long usage() {
return usage;
}
@JsonProperty(value = "failcnt")
@Override
public Long failcnt() {
return failcnt;
}
@JsonProperty(value = "limit")
@Override
public Long limit() {
return limit;
}
@Override
public String toString() {
return "MemoryStats{"
+ "stats=" + stats + ", "
+ "maxUsage=" + maxUsage + ", "
+ "usage=" + usage + ", "
+ "failcnt=" + failcnt + ", "
+ "limit=" + limit
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MemoryStats) {
MemoryStats that = (MemoryStats) o;
return (this.stats.equals(that.stats()))
&& (this.maxUsage.equals(that.maxUsage()))
&& (this.usage.equals(that.usage()))
&& (this.failcnt.equals(that.failcnt()))
&& (this.limit.equals(that.limit()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.stats.hashCode();
h *= 1000003;
h ^= this.maxUsage.hashCode();
h *= 1000003;
h ^= this.usage.hashCode();
h *= 1000003;
h ^= this.failcnt.hashCode();
h *= 1000003;
h ^= this.limit.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy