/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a document that matches the search request.See
* Also:
AWS
* API Reference
The document ID of a document that matches the search request.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The document ID of a document that matches the search request.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The document ID of a document that matches the search request.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The document ID of a document that matches the search request.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The document ID of a document that matches the search request.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The document ID of a document that matches the search request.
*/ inline Hit& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The document ID of a document that matches the search request.
*/ inline Hit& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The document ID of a document that matches the search request.
*/ inline Hit& WithId(const char* value) { SetId(value); return *this;} /** *The fields returned from a document that matches the search request.
*/ inline const Aws::MapThe fields returned from a document that matches the search request.
*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *The fields returned from a document that matches the search request.
*/ inline void SetFields(const Aws::MapThe fields returned from a document that matches the search request.
*/ inline void SetFields(Aws::MapThe fields returned from a document that matches the search request.
*/ inline Hit& WithFields(const Aws::MapThe fields returned from a document that matches the search request.
*/ inline Hit& WithFields(Aws::MapThe fields returned from a document that matches the search request.
*/ inline Hit& AddFields(const Aws::String& key, const Aws::VectorThe fields returned from a document that matches the search request.
*/ inline Hit& AddFields(Aws::String&& key, const Aws::VectorThe fields returned from a document that matches the search request.
*/ inline Hit& AddFields(const Aws::String& key, Aws::VectorThe fields returned from a document that matches the search request.
*/ inline Hit& AddFields(Aws::String&& key, Aws::VectorThe fields returned from a document that matches the search request.
*/ inline Hit& AddFields(const char* key, Aws::VectorThe fields returned from a document that matches the search request.
*/ inline Hit& AddFields(const char* key, const Aws::VectorThe expressions returned from a document that matches the search request.
*/ inline const Aws::MapThe expressions returned from a document that matches the search request.
*/ inline bool ExprsHasBeenSet() const { return m_exprsHasBeenSet; } /** *The expressions returned from a document that matches the search request.
*/ inline void SetExprs(const Aws::MapThe expressions returned from a document that matches the search request.
*/ inline void SetExprs(Aws::MapThe expressions returned from a document that matches the search request.
*/ inline Hit& WithExprs(const Aws::MapThe expressions returned from a document that matches the search request.
*/ inline Hit& WithExprs(Aws::MapThe expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(const Aws::String& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, value); return *this; } /** *The expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(Aws::String&& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), value); return *this; } /** *The expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(const Aws::String& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, std::move(value)); return *this; } /** *The expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(Aws::String&& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), std::move(value)); return *this; } /** *The expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(const char* key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, std::move(value)); return *this; } /** *The expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(Aws::String&& key, const char* value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), value); return *this; } /** *The expressions returned from a document that matches the search request.
*/ inline Hit& AddExprs(const char* key, const char* value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, value); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline const Aws::MapThe highlights returned from a document that matches the search request.
*/ inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; } /** *The highlights returned from a document that matches the search request.
*/ inline void SetHighlights(const Aws::MapThe highlights returned from a document that matches the search request.
*/ inline void SetHighlights(Aws::MapThe highlights returned from a document that matches the search request.
*/ inline Hit& WithHighlights(const Aws::MapThe highlights returned from a document that matches the search request.
*/ inline Hit& WithHighlights(Aws::MapThe highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(const Aws::String& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, value); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(Aws::String&& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), value); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(const Aws::String& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, std::move(value)); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(Aws::String&& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), std::move(value)); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(const char* key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, std::move(value)); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(Aws::String&& key, const char* value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), value); return *this; } /** *The highlights returned from a document that matches the search request.
*/ inline Hit& AddHighlights(const char* key, const char* value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Map