AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchResult.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/cloudsearchdomain/model/SearchStatus.h>
9#include <aws/cloudsearchdomain/model/Hits.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/cloudsearchdomain/model/BucketInfo.h>
13#include <aws/cloudsearchdomain/model/FieldStats.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudSearchDomain
29{
30namespace Model
31{
40 {
41 public:
42 AWS_CLOUDSEARCHDOMAIN_API SearchResult();
45
46
48
51 inline const SearchStatus& GetStatus() const{ return m_status; }
52 inline void SetStatus(const SearchStatus& value) { m_status = value; }
53 inline void SetStatus(SearchStatus&& value) { m_status = std::move(value); }
54 inline SearchResult& WithStatus(const SearchStatus& value) { SetStatus(value); return *this;}
55 inline SearchResult& WithStatus(SearchStatus&& value) { SetStatus(std::move(value)); return *this;}
57
59
62 inline const Hits& GetHits() const{ return m_hits; }
63 inline void SetHits(const Hits& value) { m_hits = value; }
64 inline void SetHits(Hits&& value) { m_hits = std::move(value); }
65 inline SearchResult& WithHits(const Hits& value) { SetHits(value); return *this;}
66 inline SearchResult& WithHits(Hits&& value) { SetHits(std::move(value)); return *this;}
68
70
73 inline const Aws::Map<Aws::String, BucketInfo>& GetFacets() const{ return m_facets; }
74 inline void SetFacets(const Aws::Map<Aws::String, BucketInfo>& value) { m_facets = value; }
75 inline void SetFacets(Aws::Map<Aws::String, BucketInfo>&& value) { m_facets = std::move(value); }
76 inline SearchResult& WithFacets(const Aws::Map<Aws::String, BucketInfo>& value) { SetFacets(value); return *this;}
77 inline SearchResult& WithFacets(Aws::Map<Aws::String, BucketInfo>&& value) { SetFacets(std::move(value)); return *this;}
78 inline SearchResult& AddFacets(const Aws::String& key, const BucketInfo& value) { m_facets.emplace(key, value); return *this; }
79 inline SearchResult& AddFacets(Aws::String&& key, const BucketInfo& value) { m_facets.emplace(std::move(key), value); return *this; }
80 inline SearchResult& AddFacets(const Aws::String& key, BucketInfo&& value) { m_facets.emplace(key, std::move(value)); return *this; }
81 inline SearchResult& AddFacets(Aws::String&& key, BucketInfo&& value) { m_facets.emplace(std::move(key), std::move(value)); return *this; }
82 inline SearchResult& AddFacets(const char* key, BucketInfo&& value) { m_facets.emplace(key, std::move(value)); return *this; }
83 inline SearchResult& AddFacets(const char* key, const BucketInfo& value) { m_facets.emplace(key, value); return *this; }
85
87
90 inline const Aws::Map<Aws::String, FieldStats>& GetStats() const{ return m_stats; }
91 inline void SetStats(const Aws::Map<Aws::String, FieldStats>& value) { m_stats = value; }
92 inline void SetStats(Aws::Map<Aws::String, FieldStats>&& value) { m_stats = std::move(value); }
93 inline SearchResult& WithStats(const Aws::Map<Aws::String, FieldStats>& value) { SetStats(value); return *this;}
94 inline SearchResult& WithStats(Aws::Map<Aws::String, FieldStats>&& value) { SetStats(std::move(value)); return *this;}
95 inline SearchResult& AddStats(const Aws::String& key, const FieldStats& value) { m_stats.emplace(key, value); return *this; }
96 inline SearchResult& AddStats(Aws::String&& key, const FieldStats& value) { m_stats.emplace(std::move(key), value); return *this; }
97 inline SearchResult& AddStats(const Aws::String& key, FieldStats&& value) { m_stats.emplace(key, std::move(value)); return *this; }
98 inline SearchResult& AddStats(Aws::String&& key, FieldStats&& value) { m_stats.emplace(std::move(key), std::move(value)); return *this; }
99 inline SearchResult& AddStats(const char* key, FieldStats&& value) { m_stats.emplace(key, std::move(value)); return *this; }
100 inline SearchResult& AddStats(const char* key, const FieldStats& value) { m_stats.emplace(key, value); return *this; }
102
104
105 inline const Aws::String& GetRequestId() const{ return m_requestId; }
106 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
107 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
108 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
109 inline SearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
110 inline SearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
111 inline SearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
113 private:
114
115 SearchStatus m_status;
116
117 Hits m_hits;
118
120
122
123 Aws::String m_requestId;
124 };
125
126} // namespace Model
127} // namespace CloudSearchDomain
128} // namespace Aws
void SetFacets(Aws::Map< Aws::String, BucketInfo > &&value)
AWS_CLOUDSEARCHDOMAIN_API SearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStats(Aws::Map< Aws::String, FieldStats > &&value)
SearchResult & AddFacets(const Aws::String &key, BucketInfo &&value)
SearchResult & AddStats(const Aws::String &key, FieldStats &&value)
void SetFacets(const Aws::Map< Aws::String, BucketInfo > &value)
SearchResult & WithHits(Hits &&value)
AWS_CLOUDSEARCHDOMAIN_API SearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResult & AddFacets(const Aws::String &key, const BucketInfo &value)
SearchResult & AddStats(Aws::String &&key, FieldStats &&value)
SearchResult & WithRequestId(const char *value)
AWS_CLOUDSEARCHDOMAIN_API SearchResult()
void SetStats(const Aws::Map< Aws::String, FieldStats > &value)
SearchResult & WithHits(const Hits &value)
const SearchStatus & GetStatus() const
SearchResult & AddFacets(Aws::String &&key, const BucketInfo &value)
SearchResult & WithStatus(const SearchStatus &value)
SearchResult & AddStats(const char *key, const FieldStats &value)
SearchResult & AddFacets(Aws::String &&key, BucketInfo &&value)
SearchResult & WithFacets(const Aws::Map< Aws::String, BucketInfo > &value)
SearchResult & AddStats(const char *key, FieldStats &&value)
SearchResult & WithFacets(Aws::Map< Aws::String, BucketInfo > &&value)
SearchResult & WithStats(const Aws::Map< Aws::String, FieldStats > &value)
const Aws::Map< Aws::String, FieldStats > & GetStats() const
SearchResult & AddStats(const Aws::String &key, const FieldStats &value)
SearchResult & WithRequestId(const Aws::String &value)
SearchResult & AddStats(Aws::String &&key, const FieldStats &value)
SearchResult & AddFacets(const char *key, const BucketInfo &value)
void SetRequestId(const Aws::String &value)
const Aws::Map< Aws::String, BucketInfo > & GetFacets() const
SearchResult & WithStats(Aws::Map< Aws::String, FieldStats > &&value)
SearchResult & AddFacets(const char *key, BucketInfo &&value)
void SetStatus(const SearchStatus &value)
SearchResult & WithStatus(SearchStatus &&value)
SearchResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue