/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.domains.v1alpha2.model;

/**
 * Defines the contact information associated with a `Registration`. [ICANN](https://icann.org/)
 * requires all domain names to have associated contact information. The `registrant_contact` is
 * considered the domain's legal owner, and often the other contacts are identical.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Cloud Domains API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class ContactSettings extends com.google.api.client.json.GenericJson {

  /**
   * Required. The administrative contact for the `Registration`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Contact adminContact;

  /**
   * Required. Privacy setting for the contacts associated with the `Registration`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String privacy;

  /**
   * Required. The registrant contact for the `Registration`. *Caution: Anyone with access to this
   * email address, phone number, and/or postal address can take control of the domain.* *Warning:
   * For new `Registration`s, the registrant receives an email confirmation that they must complete
   * within 15 days to avoid domain suspension.*
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Contact registrantContact;

  /**
   * Required. The technical contact for the `Registration`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Contact technicalContact;

  /**
   * Required. The administrative contact for the `Registration`.
   * @return value or {@code null} for none
   */
  public Contact getAdminContact() {
    return adminContact;
  }

  /**
   * Required. The administrative contact for the `Registration`.
   * @param adminContact adminContact or {@code null} for none
   */
  public ContactSettings setAdminContact(Contact adminContact) {
    this.adminContact = adminContact;
    return this;
  }

  /**
   * Required. Privacy setting for the contacts associated with the `Registration`.
   * @return value or {@code null} for none
   */
  public java.lang.String getPrivacy() {
    return privacy;
  }

  /**
   * Required. Privacy setting for the contacts associated with the `Registration`.
   * @param privacy privacy or {@code null} for none
   */
  public ContactSettings setPrivacy(java.lang.String privacy) {
    this.privacy = privacy;
    return this;
  }

  /**
   * Required. The registrant contact for the `Registration`. *Caution: Anyone with access to this
   * email address, phone number, and/or postal address can take control of the domain.* *Warning:
   * For new `Registration`s, the registrant receives an email confirmation that they must complete
   * within 15 days to avoid domain suspension.*
   * @return value or {@code null} for none
   */
  public Contact getRegistrantContact() {
    return registrantContact;
  }

  /**
   * Required. The registrant contact for the `Registration`. *Caution: Anyone with access to this
   * email address, phone number, and/or postal address can take control of the domain.* *Warning:
   * For new `Registration`s, the registrant receives an email confirmation that they must complete
   * within 15 days to avoid domain suspension.*
   * @param registrantContact registrantContact or {@code null} for none
   */
  public ContactSettings setRegistrantContact(Contact registrantContact) {
    this.registrantContact = registrantContact;
    return this;
  }

  /**
   * Required. The technical contact for the `Registration`.
   * @return value or {@code null} for none
   */
  public Contact getTechnicalContact() {
    return technicalContact;
  }

  /**
   * Required. The technical contact for the `Registration`.
   * @param technicalContact technicalContact or {@code null} for none
   */
  public ContactSettings setTechnicalContact(Contact technicalContact) {
    this.technicalContact = technicalContact;
    return this;
  }

  @Override
  public ContactSettings set(String fieldName, Object value) {
    return (ContactSettings) super.set(fieldName, value);
  }

  @Override
  public ContactSettings clone() {
    return (ContactSettings) super.clone();
  }

}
