/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The result of a Search
request. Contains the documents that
* match the specified search criteria and any requested fields, highlights, and
* facet information.See Also:
AWS
* API Reference
The status information returned for the search request.
*/ inline const SearchStatus& GetStatus() const{ return m_status; } /** *The status information returned for the search request.
*/ inline void SetStatus(const SearchStatus& value) { m_status = value; } /** *The status information returned for the search request.
*/ inline void SetStatus(SearchStatus&& value) { m_status = std::move(value); } /** *The status information returned for the search request.
*/ inline SearchResult& WithStatus(const SearchStatus& value) { SetStatus(value); return *this;} /** *The status information returned for the search request.
*/ inline SearchResult& WithStatus(SearchStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The documents that match the search criteria.
*/ inline const Hits& GetHits() const{ return m_hits; } /** *The documents that match the search criteria.
*/ inline void SetHits(const Hits& value) { m_hits = value; } /** *The documents that match the search criteria.
*/ inline void SetHits(Hits&& value) { m_hits = std::move(value); } /** *The documents that match the search criteria.
*/ inline SearchResult& WithHits(const Hits& value) { SetHits(value); return *this;} /** *The documents that match the search criteria.
*/ inline SearchResult& WithHits(Hits&& value) { SetHits(std::move(value)); return *this;} /** *The requested facet information.
*/ inline const Aws::MapThe requested facet information.
*/ inline void SetFacets(const Aws::MapThe requested facet information.
*/ inline void SetFacets(Aws::MapThe requested facet information.
*/ inline SearchResult& WithFacets(const Aws::MapThe requested facet information.
*/ inline SearchResult& WithFacets(Aws::MapThe requested facet information.
*/ inline SearchResult& AddFacets(const Aws::String& key, const BucketInfo& value) { m_facets.emplace(key, value); return *this; } /** *The requested facet information.
*/ inline SearchResult& AddFacets(Aws::String&& key, const BucketInfo& value) { m_facets.emplace(std::move(key), value); return *this; } /** *The requested facet information.
*/ inline SearchResult& AddFacets(const Aws::String& key, BucketInfo&& value) { m_facets.emplace(key, std::move(value)); return *this; } /** *The requested facet information.
*/ inline SearchResult& AddFacets(Aws::String&& key, BucketInfo&& value) { m_facets.emplace(std::move(key), std::move(value)); return *this; } /** *The requested facet information.
*/ inline SearchResult& AddFacets(const char* key, BucketInfo&& value) { m_facets.emplace(key, std::move(value)); return *this; } /** *The requested facet information.
*/ inline SearchResult& AddFacets(const char* key, const BucketInfo& value) { m_facets.emplace(key, value); return *this; } /** *The requested field statistics information.
*/ inline const Aws::MapThe requested field statistics information.
*/ inline void SetStats(const Aws::MapThe requested field statistics information.
*/ inline void SetStats(Aws::MapThe requested field statistics information.
*/ inline SearchResult& WithStats(const Aws::MapThe requested field statistics information.
*/ inline SearchResult& WithStats(Aws::MapThe requested field statistics information.
*/ inline SearchResult& AddStats(const Aws::String& key, const FieldStats& value) { m_stats.emplace(key, value); return *this; } /** *The requested field statistics information.
*/ inline SearchResult& AddStats(Aws::String&& key, const FieldStats& value) { m_stats.emplace(std::move(key), value); return *this; } /** *The requested field statistics information.
*/ inline SearchResult& AddStats(const Aws::String& key, FieldStats&& value) { m_stats.emplace(key, std::move(value)); return *this; } /** *The requested field statistics information.
*/ inline SearchResult& AddStats(Aws::String&& key, FieldStats&& value) { m_stats.emplace(std::move(key), std::move(value)); return *this; } /** *The requested field statistics information.
*/ inline SearchResult& AddStats(const char* key, FieldStats&& value) { m_stats.emplace(key, std::move(value)); return *this; } /** *The requested field statistics information.
*/ inline SearchResult& AddStats(const char* key, const FieldStats& value) { m_stats.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline SearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: SearchStatus m_status; Hits m_hits; Aws::Map