AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Hit.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudSearchDomain
24{
25namespace Model
26{
27
34 class Hit
35 {
36 public:
37 AWS_CLOUDSEARCHDOMAIN_API Hit();
38 AWS_CLOUDSEARCHDOMAIN_API Hit(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDSEARCHDOMAIN_API Hit& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Hit& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Hit& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Hit& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFields() const{ return m_fields; }
62 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
63 inline void SetFields(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
64 inline void SetFields(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
65 inline Hit& WithFields(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetFields(value); return *this;}
66 inline Hit& WithFields(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetFields(std::move(value)); return *this;}
67 inline Hit& AddFields(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
68 inline Hit& AddFields(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
69 inline Hit& AddFields(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
70 inline Hit& AddFields(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
71 inline Hit& AddFields(const char* key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
72 inline Hit& AddFields(const char* key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetExprs() const{ return m_exprs; }
80 inline bool ExprsHasBeenSet() const { return m_exprsHasBeenSet; }
81 inline void SetExprs(const Aws::Map<Aws::String, Aws::String>& value) { m_exprsHasBeenSet = true; m_exprs = value; }
82 inline void SetExprs(Aws::Map<Aws::String, Aws::String>&& value) { m_exprsHasBeenSet = true; m_exprs = std::move(value); }
83 inline Hit& WithExprs(const Aws::Map<Aws::String, Aws::String>& value) { SetExprs(value); return *this;}
84 inline Hit& WithExprs(Aws::Map<Aws::String, Aws::String>&& value) { SetExprs(std::move(value)); return *this;}
85 inline Hit& AddExprs(const Aws::String& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, value); return *this; }
86 inline Hit& AddExprs(Aws::String&& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), value); return *this; }
87 inline Hit& AddExprs(const Aws::String& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, std::move(value)); return *this; }
88 inline Hit& AddExprs(Aws::String&& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), std::move(value)); return *this; }
89 inline Hit& AddExprs(const char* key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, std::move(value)); return *this; }
90 inline Hit& AddExprs(Aws::String&& key, const char* value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), value); return *this; }
91 inline Hit& AddExprs(const char* key, const char* value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, value); return *this; }
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetHighlights() const{ return m_highlights; }
99 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
100 inline void SetHighlights(const Aws::Map<Aws::String, Aws::String>& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
101 inline void SetHighlights(Aws::Map<Aws::String, Aws::String>&& value) { m_highlightsHasBeenSet = true; m_highlights = std::move(value); }
102 inline Hit& WithHighlights(const Aws::Map<Aws::String, Aws::String>& value) { SetHighlights(value); return *this;}
103 inline Hit& WithHighlights(Aws::Map<Aws::String, Aws::String>&& value) { SetHighlights(std::move(value)); return *this;}
104 inline Hit& AddHighlights(const Aws::String& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, value); return *this; }
105 inline Hit& AddHighlights(Aws::String&& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), value); return *this; }
106 inline Hit& AddHighlights(const Aws::String& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, std::move(value)); return *this; }
107 inline Hit& AddHighlights(Aws::String&& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), std::move(value)); return *this; }
108 inline Hit& AddHighlights(const char* key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, std::move(value)); return *this; }
109 inline Hit& AddHighlights(Aws::String&& key, const char* value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), value); return *this; }
110 inline Hit& AddHighlights(const char* key, const char* value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, value); return *this; }
112 private:
113
114 Aws::String m_id;
115 bool m_idHasBeenSet = false;
116
118 bool m_fieldsHasBeenSet = false;
119
121 bool m_exprsHasBeenSet = false;
122
124 bool m_highlightsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CloudSearchDomain
129} // namespace Aws
void SetId(Aws::String &&value)
Definition Hit.h:50
Hit & WithFields(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Hit.h:66
Hit & AddHighlights(const char *key, Aws::String &&value)
Definition Hit.h:108
Hit & AddHighlights(Aws::String &&key, const char *value)
Definition Hit.h:109
Hit & AddHighlights(const Aws::String &key, const Aws::String &value)
Definition Hit.h:104
bool HighlightsHasBeenSet() const
Definition Hit.h:99
Hit & WithExprs(const Aws::Map< Aws::String, Aws::String > &value)
Definition Hit.h:83
void SetExprs(const Aws::Map< Aws::String, Aws::String > &value)
Definition Hit.h:81
const Aws::String & GetId() const
Definition Hit.h:47
AWS_CLOUDSEARCHDOMAIN_API Hit & operator=(Aws::Utils::Json::JsonView jsonValue)
Hit & AddExprs(const char *key, Aws::String &&value)
Definition Hit.h:89
Hit & WithHighlights(Aws::Map< Aws::String, Aws::String > &&value)
Definition Hit.h:103
void SetId(const Aws::String &value)
Definition Hit.h:49
Hit & AddExprs(Aws::String &&key, const char *value)
Definition Hit.h:90
AWS_CLOUDSEARCHDOMAIN_API Hit()
Hit & AddFields(const char *key, Aws::Vector< Aws::String > &&value)
Definition Hit.h:71
Hit & AddHighlights(const Aws::String &key, Aws::String &&value)
Definition Hit.h:106
Hit & WithExprs(Aws::Map< Aws::String, Aws::String > &&value)
Definition Hit.h:84
const Aws::Map< Aws::String, Aws::String > & GetHighlights() const
Definition Hit.h:98
Hit & AddFields(const char *key, const Aws::Vector< Aws::String > &value)
Definition Hit.h:72
Hit & AddExprs(Aws::String &&key, const Aws::String &value)
Definition Hit.h:86
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetExprs() const
Definition Hit.h:79
bool FieldsHasBeenSet() const
Definition Hit.h:62
Hit & AddExprs(const Aws::String &key, const Aws::String &value)
Definition Hit.h:85
Hit & WithId(const Aws::String &value)
Definition Hit.h:52
Hit & AddHighlights(const char *key, const char *value)
Definition Hit.h:110
Hit & AddExprs(Aws::String &&key, Aws::String &&value)
Definition Hit.h:88
Hit & AddFields(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition Hit.h:67
Hit & WithFields(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Hit.h:65
void SetHighlights(const Aws::Map< Aws::String, Aws::String > &value)
Definition Hit.h:100
void SetHighlights(Aws::Map< Aws::String, Aws::String > &&value)
Definition Hit.h:101
Hit & AddHighlights(Aws::String &&key, Aws::String &&value)
Definition Hit.h:107
void SetFields(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Hit.h:64
Hit & AddFields(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition Hit.h:69
void SetId(const char *value)
Definition Hit.h:51
Hit & AddFields(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition Hit.h:70
AWS_CLOUDSEARCHDOMAIN_API Hit(Aws::Utils::Json::JsonView jsonValue)
Hit & AddExprs(const Aws::String &key, Aws::String &&value)
Definition Hit.h:87
Hit & WithId(Aws::String &&value)
Definition Hit.h:53
void SetExprs(Aws::Map< Aws::String, Aws::String > &&value)
Definition Hit.h:82
Hit & AddHighlights(Aws::String &&key, const Aws::String &value)
Definition Hit.h:105
Hit & AddFields(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition Hit.h:68
Hit & WithId(const char *value)
Definition Hit.h:54
Hit & WithHighlights(const Aws::Map< Aws::String, Aws::String > &value)
Definition Hit.h:102
void SetFields(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Hit.h:63
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetFields() const
Definition Hit.h:61
Hit & AddExprs(const char *key, const char *value)
Definition Hit.h:91
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue