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

org.jclouds.azurecompute.arm.domain.AutoValue_Certificate_Contact Maven / Gradle / Ivy

The newest version!

package org.jclouds.azurecompute.arm.domain;

import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Certificate_Contact extends Certificate.Contact {

  private final String email;
  private final String name;
  private final String phone;

  AutoValue_Certificate_Contact(
      @Nullable String email,
      @Nullable String name,
      @Nullable String phone) {
    this.email = email;
    this.name = name;
    this.phone = phone;
  }

  @Nullable
  @Override
  public String email() {
    return email;
  }

  @Nullable
  @Override
  public String name() {
    return name;
  }

  @Nullable
  @Override
  public String phone() {
    return phone;
  }

  @Override
  public String toString() {
    return "Contact{"
        + "email=" + email + ", "
        + "name=" + name + ", "
        + "phone=" + phone
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Certificate.Contact) {
      Certificate.Contact that = (Certificate.Contact) o;
      return ((this.email == null) ? (that.email() == null) : this.email.equals(that.email()))
           && ((this.name == null) ? (that.name() == null) : this.name.equals(that.name()))
           && ((this.phone == null) ? (that.phone() == null) : this.phone.equals(that.phone()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (email == null) ? 0 : this.email.hashCode();
    h *= 1000003;
    h ^= (name == null) ? 0 : this.name.hashCode();
    h *= 1000003;
    h ^= (phone == null) ? 0 : this.phone.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy