/*
 * 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;

/**
 * Links object defined in [section 4.2 of RFC
 * 7483](https://tools.ietf.org/html/rfc7483#section-4.2).
 *
 * <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 Link extends com.google.api.client.json.GenericJson {

  /**
   * Target URL of a link. Example: "http://example.com/previous".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String href;

  /**
   * Language code of a link. Example: "en".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String hreflang;

  /**
   * Media type of the link destination. Example: "screen".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String media;

  /**
   * Relation type of a link. Example: "previous".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String rel;

  /**
   * Title of this link. Example: "title".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String title;

  /**
   * Content type of the link. Example: "application/json".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String type;

  /**
   * URL giving context for the link. Example: "http://example.com/current".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String value;

  /**
   * Target URL of a link. Example: "http://example.com/previous".
   * @return value or {@code null} for none
   */
  public java.lang.String getHref() {
    return href;
  }

  /**
   * Target URL of a link. Example: "http://example.com/previous".
   * @param href href or {@code null} for none
   */
  public Link setHref(java.lang.String href) {
    this.href = href;
    return this;
  }

  /**
   * Language code of a link. Example: "en".
   * @return value or {@code null} for none
   */
  public java.lang.String getHreflang() {
    return hreflang;
  }

  /**
   * Language code of a link. Example: "en".
   * @param hreflang hreflang or {@code null} for none
   */
  public Link setHreflang(java.lang.String hreflang) {
    this.hreflang = hreflang;
    return this;
  }

  /**
   * Media type of the link destination. Example: "screen".
   * @return value or {@code null} for none
   */
  public java.lang.String getMedia() {
    return media;
  }

  /**
   * Media type of the link destination. Example: "screen".
   * @param media media or {@code null} for none
   */
  public Link setMedia(java.lang.String media) {
    this.media = media;
    return this;
  }

  /**
   * Relation type of a link. Example: "previous".
   * @return value or {@code null} for none
   */
  public java.lang.String getRel() {
    return rel;
  }

  /**
   * Relation type of a link. Example: "previous".
   * @param rel rel or {@code null} for none
   */
  public Link setRel(java.lang.String rel) {
    this.rel = rel;
    return this;
  }

  /**
   * Title of this link. Example: "title".
   * @return value or {@code null} for none
   */
  public java.lang.String getTitle() {
    return title;
  }

  /**
   * Title of this link. Example: "title".
   * @param title title or {@code null} for none
   */
  public Link setTitle(java.lang.String title) {
    this.title = title;
    return this;
  }

  /**
   * Content type of the link. Example: "application/json".
   * @return value or {@code null} for none
   */
  public java.lang.String getType() {
    return type;
  }

  /**
   * Content type of the link. Example: "application/json".
   * @param type type or {@code null} for none
   */
  public Link setType(java.lang.String type) {
    this.type = type;
    return this;
  }

  /**
   * URL giving context for the link. Example: "http://example.com/current".
   * @return value or {@code null} for none
   */
  public java.lang.String getValue() {
    return value;
  }

  /**
   * URL giving context for the link. Example: "http://example.com/current".
   * @param value value or {@code null} for none
   */
  public Link setValue(java.lang.String value) {
    this.value = value;
    return this;
  }

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

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

}
