
org.jclouds.azurecompute.arm.domain.AutoValue_MetricDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
The newest version!
package org.jclouds.azurecompute.arm.domain;
import java.util.List;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MetricDefinition extends MetricDefinition {
private final String resourceId;
private final MetricName name;
private final Boolean isDimensionRequired;
private final String unit;
private final MetricDefinition.AggregationType primaryAggregationType;
private final List metricAvailabilities;
private final String id;
AutoValue_MetricDefinition(
@Nullable String resourceId,
MetricName name,
@Nullable Boolean isDimensionRequired,
String unit,
MetricDefinition.AggregationType primaryAggregationType,
List metricAvailabilities,
String id) {
this.resourceId = resourceId;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.isDimensionRequired = isDimensionRequired;
if (unit == null) {
throw new NullPointerException("Null unit");
}
this.unit = unit;
if (primaryAggregationType == null) {
throw new NullPointerException("Null primaryAggregationType");
}
this.primaryAggregationType = primaryAggregationType;
if (metricAvailabilities == null) {
throw new NullPointerException("Null metricAvailabilities");
}
this.metricAvailabilities = metricAvailabilities;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@Nullable
@Override
public String resourceId() {
return resourceId;
}
@Override
public MetricName name() {
return name;
}
@Nullable
@Override
public Boolean isDimensionRequired() {
return isDimensionRequired;
}
@Override
public String unit() {
return unit;
}
@Override
public MetricDefinition.AggregationType primaryAggregationType() {
return primaryAggregationType;
}
@Override
public List metricAvailabilities() {
return metricAvailabilities;
}
@Override
public String id() {
return id;
}
@Override
public String toString() {
return "MetricDefinition{"
+ "resourceId=" + resourceId + ", "
+ "name=" + name + ", "
+ "isDimensionRequired=" + isDimensionRequired + ", "
+ "unit=" + unit + ", "
+ "primaryAggregationType=" + primaryAggregationType + ", "
+ "metricAvailabilities=" + metricAvailabilities + ", "
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MetricDefinition) {
MetricDefinition that = (MetricDefinition) o;
return ((this.resourceId == null) ? (that.resourceId() == null) : this.resourceId.equals(that.resourceId()))
&& (this.name.equals(that.name()))
&& ((this.isDimensionRequired == null) ? (that.isDimensionRequired() == null) : this.isDimensionRequired.equals(that.isDimensionRequired()))
&& (this.unit.equals(that.unit()))
&& (this.primaryAggregationType.equals(that.primaryAggregationType()))
&& (this.metricAvailabilities.equals(that.metricAvailabilities()))
&& (this.id.equals(that.id()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (resourceId == null) ? 0 : this.resourceId.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (isDimensionRequired == null) ? 0 : this.isDimensionRequired.hashCode();
h *= 1000003;
h ^= this.unit.hashCode();
h *= 1000003;
h ^= this.primaryAggregationType.hashCode();
h *= 1000003;
h ^= this.metricAvailabilities.hashCode();
h *= 1000003;
h ^= this.id.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy