com.oneops.gslb.mtd.v2.domain.$AutoValue_DCFallbackTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gslb Show documentation
Show all versions of gslb Show documentation
Library for managing gslb
package com.oneops.gslb.mtd.v2.domain;
import com.google.gson.annotations.SerializedName;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_DCFallbackTarget extends DCFallbackTarget {
private final String fallbackTarget;
private final Integer dataCenterId;
$AutoValue_DCFallbackTarget(
@Nullable String fallbackTarget,
@Nullable Integer dataCenterId) {
this.fallbackTarget = fallbackTarget;
this.dataCenterId = dataCenterId;
}
@SerializedName(value = "fallback_target")
@Nullable
@Override
public String fallbackTarget() {
return fallbackTarget;
}
@SerializedName(value = "data_center_id")
@Nullable
@Override
public Integer dataCenterId() {
return dataCenterId;
}
@Override
public String toString() {
return "DCFallbackTarget{"
+ "fallbackTarget=" + fallbackTarget + ", "
+ "dataCenterId=" + dataCenterId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DCFallbackTarget) {
DCFallbackTarget that = (DCFallbackTarget) o;
return ((this.fallbackTarget == null) ? (that.fallbackTarget() == null) : this.fallbackTarget.equals(that.fallbackTarget()))
&& ((this.dataCenterId == null) ? (that.dataCenterId() == null) : this.dataCenterId.equals(that.dataCenterId()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (fallbackTarget == null) ? 0 : this.fallbackTarget.hashCode();
h *= 1000003;
h ^= (dataCenterId == null) ? 0 : this.dataCenterId.hashCode();
return h;
}
}