All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oneops.gslb.mtd.v2.domain.$AutoValue_DCFallbackTarget Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version

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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy