/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An autocomplete suggestion that matches the query string specified in a
* SuggestRequest
. See Also:
AWS
* API Reference
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The string that matches the query string specified in the
* SuggestRequest
.
The relevance score of a suggested match.
*/ inline long long GetScore() const{ return m_score; } /** *The relevance score of a suggested match.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The relevance score of a suggested match.
*/ inline void SetScore(long long value) { m_scoreHasBeenSet = true; m_score = value; } /** *The relevance score of a suggested match.
*/ inline SuggestionMatch& WithScore(long long value) { SetScore(value); return *this;} /** *The document ID of the suggested document.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The document ID of the suggested document.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The document ID of the suggested document.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The document ID of the suggested document.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The document ID of the suggested document.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The document ID of the suggested document.
*/ inline SuggestionMatch& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The document ID of the suggested document.
*/ inline SuggestionMatch& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The document ID of the suggested document.
*/ inline SuggestionMatch& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_suggestion; bool m_suggestionHasBeenSet = false; long long m_score; bool m_scoreHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws