com.yahoo.athenz.zts.DomainMetric Maven / Gradle / Ivy
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zts;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yahoo.rdl.*;
//
// DomainMetric -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class DomainMetric {
public DomainMetricType metricType;
public int metricVal;
public DomainMetric setMetricType(DomainMetricType metricType) {
this.metricType = metricType;
return this;
}
public DomainMetricType getMetricType() {
return metricType;
}
public DomainMetric setMetricVal(int metricVal) {
this.metricVal = metricVal;
return this;
}
public int getMetricVal() {
return metricVal;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != DomainMetric.class) {
return false;
}
DomainMetric a = (DomainMetric) another;
if (metricType == null ? a.metricType != null : !metricType.equals(a.metricType)) {
return false;
}
if (metricVal != a.metricVal) {
return false;
}
}
return true;
}
}