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

com.microsoft.bing.websearch.models.WebPage Maven / Gradle / Ivy

/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.bing.websearch.models;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Defines a webpage that is relevant to the query.
 */
public class WebPage extends CreativeWork {
    /**
     * The display URL of the webpage. The URL is meant for display purposes
     * only and is not well formed.
     */
    @JsonProperty(value = "displayUrl", access = JsonProperty.Access.WRITE_ONLY)
    private String displayUrl;

    /**
     * A snippet of text from the webpage that describes its contents.
     */
    @JsonProperty(value = "snippet", access = JsonProperty.Access.WRITE_ONLY)
    private String snippet;

    /**
     * A list of links to related content that Bing found in the website that
     * contains this webpage. The Webpage object in this context includes only
     * the name, url, urlPingSuffix, and snippet fields.
     */
    @JsonProperty(value = "deepLinks", access = JsonProperty.Access.WRITE_ONLY)
    private List deepLinks;

    /**
     * The last time that Bing crawled the webpage. The date is in the form,
     * YYYY-MM-DDTHH:MM:SS. For example, 2015-04-13T05:23:39.
     */
    @JsonProperty(value = "dateLastCrawled", access = JsonProperty.Access.WRITE_ONLY)
    private String dateLastCrawled;

    /**
     * A list of search tags that the webpage owner specified on the webpage.
     * The API returns only indexed search tags. The name field of the MetaTag
     * object contains the indexed search tag. Search tags begin with search.*
     * (for example, search.assetId). The content field contains the tag's
     * value.
     */
    @JsonProperty(value = "searchTags", access = JsonProperty.Access.WRITE_ONLY)
    private List searchTags;

    /**
     * The primaryImageOfPage property.
     */
    @JsonProperty(value = "primaryImageOfPage", access = JsonProperty.Access.WRITE_ONLY)
    private ImageObject primaryImageOfPage;

    /**
     * Get the display URL of the webpage. The URL is meant for display purposes only and is not well formed.
     *
     * @return the displayUrl value
     */
    public String displayUrl() {
        return this.displayUrl;
    }

    /**
     * Get a snippet of text from the webpage that describes its contents.
     *
     * @return the snippet value
     */
    public String snippet() {
        return this.snippet;
    }

    /**
     * Get a list of links to related content that Bing found in the website that contains this webpage. The Webpage object in this context includes only the name, url, urlPingSuffix, and snippet fields.
     *
     * @return the deepLinks value
     */
    public List deepLinks() {
        return this.deepLinks;
    }

    /**
     * Get the last time that Bing crawled the webpage. The date is in the form, YYYY-MM-DDTHH:MM:SS. For example, 2015-04-13T05:23:39.
     *
     * @return the dateLastCrawled value
     */
    public String dateLastCrawled() {
        return this.dateLastCrawled;
    }

    /**
     * Get a list of search tags that the webpage owner specified on the webpage. The API returns only indexed search tags. The name field of the MetaTag object contains the indexed search tag. Search tags begin with search.* (for example, search.assetId). The content field contains the tag's value.
     *
     * @return the searchTags value
     */
    public List searchTags() {
        return this.searchTags;
    }

    /**
     * Get the primaryImageOfPage value.
     *
     * @return the primaryImageOfPage value
     */
    public ImageObject primaryImageOfPage() {
        return this.primaryImageOfPage;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy