/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A featured document with its metadata information. This document is displayed
* at the top of the search results page, placed above all other results for
* certain queries. If there's an exact match of a query, then the document is
* featured in the search results.See Also:
AWS
* API Reference
The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline FeaturedDocumentWithMetadata& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline FeaturedDocumentWithMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier of the featured document with its metadata. You can use the Query API * to search for specific documents with their document IDs included in the result * items, or you can use the console.
*/ inline FeaturedDocumentWithMetadata& WithId(const char* value) { SetId(value); return *this;} /** *The main title of the featured document.
*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *The main title of the featured document.
*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *The main title of the featured document.
*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *The main title of the featured document.
*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *The main title of the featured document.
*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *The main title of the featured document.
*/ inline FeaturedDocumentWithMetadata& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *The main title of the featured document.
*/ inline FeaturedDocumentWithMetadata& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *The main title of the featured document.
*/ inline FeaturedDocumentWithMetadata& WithTitle(const char* value) { SetTitle(value); return *this;} /** *The source URI location of the featured document.
*/ inline const Aws::String& GetURI() const{ return m_uRI; } /** *The source URI location of the featured document.
*/ inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; } /** *The source URI location of the featured document.
*/ inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; } /** *The source URI location of the featured document.
*/ inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); } /** *The source URI location of the featured document.
*/ inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); } /** *The source URI location of the featured document.
*/ inline FeaturedDocumentWithMetadata& WithURI(const Aws::String& value) { SetURI(value); return *this;} /** *The source URI location of the featured document.
*/ inline FeaturedDocumentWithMetadata& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;} /** *The source URI location of the featured document.
*/ inline FeaturedDocumentWithMetadata& WithURI(const char* value) { SetURI(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_uRI; bool m_uRIHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws