/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

A featured document. 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

*/ class FeaturedDocument { public: AWS_KENDRA_API FeaturedDocument(); AWS_KENDRA_API FeaturedDocument(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API FeaturedDocument& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the document to feature in the search results. 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 document to feature in the search results. 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 document to feature in the search results. 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 document to feature in the search results. 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 document to feature in the search results. 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 document to feature in the search results. 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 FeaturedDocument& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the document to feature in the search results. 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 FeaturedDocument& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the document to feature in the search results. 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 FeaturedDocument& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws