/*
 * 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.domainsrdap.v1.model;

/**
 * Response to a general RDAP query.
 *
 * <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 Domains RDAP 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 RdapResponse extends com.google.api.client.json.GenericJson {

  /**
   * Error description.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> description;

  /**
   * Error HTTP code. Example: "501".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer errorCode;

  /**
   * HTTP response with content type set to "application/json+rdap".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private HttpBody jsonResponse;

  /**
   * Error language code. Error response info fields are defined in [section 6 of RFC
   * 7483](https://tools.ietf.org/html/rfc7483#section-6).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String lang;

  /**
   * Notices applying to this response.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<Notice> notices;

  static {
    // hack to force ProGuard to consider Notice used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(Notice.class);
  }

  /**
   * RDAP conformance level.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> rdapConformance;

  /**
   * Error title.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String title;

  /**
   * Error description.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getDescription() {
    return description;
  }

  /**
   * Error description.
   * @param description description or {@code null} for none
   */
  public RdapResponse setDescription(java.util.List<java.lang.String> description) {
    this.description = description;
    return this;
  }

  /**
   * Error HTTP code. Example: "501".
   * @return value or {@code null} for none
   */
  public java.lang.Integer getErrorCode() {
    return errorCode;
  }

  /**
   * Error HTTP code. Example: "501".
   * @param errorCode errorCode or {@code null} for none
   */
  public RdapResponse setErrorCode(java.lang.Integer errorCode) {
    this.errorCode = errorCode;
    return this;
  }

  /**
   * HTTP response with content type set to "application/json+rdap".
   * @return value or {@code null} for none
   */
  public HttpBody getJsonResponse() {
    return jsonResponse;
  }

  /**
   * HTTP response with content type set to "application/json+rdap".
   * @param jsonResponse jsonResponse or {@code null} for none
   */
  public RdapResponse setJsonResponse(HttpBody jsonResponse) {
    this.jsonResponse = jsonResponse;
    return this;
  }

  /**
   * Error language code. Error response info fields are defined in [section 6 of RFC
   * 7483](https://tools.ietf.org/html/rfc7483#section-6).
   * @return value or {@code null} for none
   */
  public java.lang.String getLang() {
    return lang;
  }

  /**
   * Error language code. Error response info fields are defined in [section 6 of RFC
   * 7483](https://tools.ietf.org/html/rfc7483#section-6).
   * @param lang lang or {@code null} for none
   */
  public RdapResponse setLang(java.lang.String lang) {
    this.lang = lang;
    return this;
  }

  /**
   * Notices applying to this response.
   * @return value or {@code null} for none
   */
  public java.util.List<Notice> getNotices() {
    return notices;
  }

  /**
   * Notices applying to this response.
   * @param notices notices or {@code null} for none
   */
  public RdapResponse setNotices(java.util.List<Notice> notices) {
    this.notices = notices;
    return this;
  }

  /**
   * RDAP conformance level.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getRdapConformance() {
    return rdapConformance;
  }

  /**
   * RDAP conformance level.
   * @param rdapConformance rdapConformance or {@code null} for none
   */
  public RdapResponse setRdapConformance(java.util.List<java.lang.String> rdapConformance) {
    this.rdapConformance = rdapConformance;
    return this;
  }

  /**
   * Error title.
   * @return value or {@code null} for none
   */
  public java.lang.String getTitle() {
    return title;
  }

  /**
   * Error title.
   * @param title title or {@code null} for none
   */
  public RdapResponse setTitle(java.lang.String title) {
    this.title = title;
    return this;
  }

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

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

}
