/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A single query suggestion.See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe 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::VectorThe 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::VectorThe 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::VectorThe 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