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

A single query suggestion.

See Also:

AWS * API Reference

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

The UUID (universally unique identifier) of a single query suggestion.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline Suggestion& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline Suggestion& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The UUID (universally unique identifier) of a single query suggestion.

*/ inline Suggestion& WithId(const char* value) { SetId(value); return *this;} /** *

The value for the UUID (universally unique identifier) of a single query * suggestion.

The value is the text string of a suggestion.

*/ inline const SuggestionValue& GetValue() const{ return m_value; } /** *

The value for the UUID (universally unique identifier) of a single query * suggestion.

The value is the text string of a suggestion.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value for the UUID (universally unique identifier) of a single query * suggestion.

The value is the text string of a suggestion.

*/ inline void SetValue(const SuggestionValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value for the UUID (universally unique identifier) of a single query * suggestion.

The value is the text string of a suggestion.

*/ inline void SetValue(SuggestionValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value for the UUID (universally unique identifier) of a single query * suggestion.

The value is the text string of a suggestion.

*/ inline Suggestion& WithValue(const SuggestionValue& value) { SetValue(value); return *this;} /** *

The value for the UUID (universally unique identifier) of a single query * suggestion.

The value is the text string of a suggestion.

*/ inline Suggestion& WithValue(SuggestionValue&& value) { SetValue(std::move(value)); return *this;} /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline const Aws::Vector& GetSourceDocuments() const{ return m_sourceDocuments; } /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline bool SourceDocumentsHasBeenSet() const { return m_sourceDocumentsHasBeenSet; } /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline void SetSourceDocuments(const Aws::Vector& value) { m_sourceDocumentsHasBeenSet = true; m_sourceDocuments = value; } /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline void SetSourceDocuments(Aws::Vector&& value) { m_sourceDocumentsHasBeenSet = true; m_sourceDocuments = std::move(value); } /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline Suggestion& WithSourceDocuments(const Aws::Vector& value) { SetSourceDocuments(value); return *this;} /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline Suggestion& WithSourceDocuments(Aws::Vector&& value) { SetSourceDocuments(std::move(value)); return *this;} /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline Suggestion& AddSourceDocuments(const SourceDocument& value) { m_sourceDocumentsHasBeenSet = true; m_sourceDocuments.push_back(value); return *this; } /** *

The list of document IDs and their fields/attributes that are used for a * single query suggestion, if document fields set to use for query * suggestions.

*/ inline Suggestion& AddSourceDocuments(SourceDocument&& value) { m_sourceDocumentsHasBeenSet = true; m_sourceDocuments.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; SuggestionValue m_value; bool m_valueHasBeenSet = false; Aws::Vector m_sourceDocuments; bool m_sourceDocumentsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws