AWS SDK for C++  0.14.3
AWS SDK for C++
Hit.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CloudSearchDomain
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Hit();
42  Hit(const Aws::Utils::Json::JsonValue& jsonValue);
43  Hit& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline Hit& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline Hit& WithId(Aws::String&& value) { SetId(value); return *this;}
75 
79  inline Hit& WithId(const char* value) { SetId(value); return *this;}
80 
84  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFields() const{ return m_fields; }
85 
89  inline void SetFields(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
90 
94  inline void SetFields(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_fieldsHasBeenSet = true; m_fields = value; }
95 
99  inline Hit& WithFields(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetFields(value); return *this;}
100 
104  inline Hit& WithFields(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetFields(value); return *this;}
105 
109  inline Hit& AddFields(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields[key] = value; return *this; }
110 
114  inline Hit& AddFields(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields[key] = value; return *this; }
115 
119  inline Hit& AddFields(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields[key] = value; return *this; }
120 
124  inline Hit& AddFields(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields[key] = value; return *this; }
125 
129  inline Hit& AddFields(const char* key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields[key] = value; return *this; }
130 
134  inline Hit& AddFields(const char* key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields[key] = value; return *this; }
135 
139  inline const Aws::Map<Aws::String, Aws::String>& GetExprs() const{ return m_exprs; }
140 
144  inline void SetExprs(const Aws::Map<Aws::String, Aws::String>& value) { m_exprsHasBeenSet = true; m_exprs = value; }
145 
149  inline void SetExprs(Aws::Map<Aws::String, Aws::String>&& value) { m_exprsHasBeenSet = true; m_exprs = value; }
150 
154  inline Hit& WithExprs(const Aws::Map<Aws::String, Aws::String>& value) { SetExprs(value); return *this;}
155 
159  inline Hit& WithExprs(Aws::Map<Aws::String, Aws::String>&& value) { SetExprs(value); return *this;}
160 
164  inline Hit& AddExprs(const Aws::String& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
165 
169  inline Hit& AddExprs(Aws::String&& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
170 
174  inline Hit& AddExprs(const Aws::String& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
175 
179  inline Hit& AddExprs(Aws::String&& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
180 
184  inline Hit& AddExprs(const char* key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
185 
189  inline Hit& AddExprs(Aws::String&& key, const char* value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
190 
194  inline Hit& AddExprs(const char* key, const char* value) { m_exprsHasBeenSet = true; m_exprs[key] = value; return *this; }
195 
199  inline const Aws::Map<Aws::String, Aws::String>& GetHighlights() const{ return m_highlights; }
200 
204  inline void SetHighlights(const Aws::Map<Aws::String, Aws::String>& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
205 
209  inline void SetHighlights(Aws::Map<Aws::String, Aws::String>&& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
210 
214  inline Hit& WithHighlights(const Aws::Map<Aws::String, Aws::String>& value) { SetHighlights(value); return *this;}
215 
219  inline Hit& WithHighlights(Aws::Map<Aws::String, Aws::String>&& value) { SetHighlights(value); return *this;}
220 
224  inline Hit& AddHighlights(const Aws::String& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
225 
229  inline Hit& AddHighlights(Aws::String&& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
230 
234  inline Hit& AddHighlights(const Aws::String& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
235 
239  inline Hit& AddHighlights(Aws::String&& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
240 
244  inline Hit& AddHighlights(const char* key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
245 
249  inline Hit& AddHighlights(Aws::String&& key, const char* value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
250 
254  inline Hit& AddHighlights(const char* key, const char* value) { m_highlightsHasBeenSet = true; m_highlights[key] = value; return *this; }
255 
256  private:
257  Aws::String m_id;
258  bool m_idHasBeenSet;
260  bool m_fieldsHasBeenSet;
262  bool m_exprsHasBeenSet;
264  bool m_highlightsHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace CloudSearchDomain
269 } // namespace Aws
void SetHighlights(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Hit.h:209
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetFields() const
Definition: Hit.h:84
Hit & AddHighlights(const Aws::String &key, const Aws::String &value)
Definition: Hit.h:224
Hit & AddExprs(const Aws::String &key, Aws::String &&value)
Definition: Hit.h:174
Hit & AddFields(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: Hit.h:109
Hit & WithHighlights(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Hit.h:219
Hit & WithFields(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: Hit.h:104
Hit & WithHighlights(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Hit.h:214
void SetExprs(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Hit.h:149
Hit & AddFields(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: Hit.h:124
Hit & WithId(const char *value)
Definition: Hit.h:79
Hit & AddHighlights(Aws::String &&key, const Aws::String &value)
Definition: Hit.h:229
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Hit & WithId(const Aws::String &value)
Definition: Hit.h:69
Hit & AddExprs(Aws::String &&key, const char *value)
Definition: Hit.h:189
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
Hit & AddExprs(const Aws::String &key, const Aws::String &value)
Definition: Hit.h:164
Hit & AddHighlights(Aws::String &&key, const char *value)
Definition: Hit.h:249
Hit & WithFields(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: Hit.h:99
const Aws::Map< Aws::String, Aws::String > & GetHighlights() const
Definition: Hit.h:199
Hit & AddHighlights(const char *key, const char *value)
Definition: Hit.h:254
Hit & AddHighlights(Aws::String &&key, Aws::String &&value)
Definition: Hit.h:239
Hit & AddHighlights(const Aws::String &key, Aws::String &&value)
Definition: Hit.h:234
void SetFields(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: Hit.h:89
void SetId(Aws::String &&value)
Definition: Hit.h:59
Hit & AddFields(const char *key, const Aws::Vector< Aws::String > &value)
Definition: Hit.h:134
void SetFields(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: Hit.h:94
#define AWS_CLOUDSEARCHDOMAIN_API
Hit & WithExprs(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Hit.h:159
void SetHighlights(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Hit.h:204
Hit & AddExprs(Aws::String &&key, const Aws::String &value)
Definition: Hit.h:169
void SetExprs(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Hit.h:144
Hit & WithExprs(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Hit.h:154
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Hit & AddExprs(const char *key, Aws::String &&value)
Definition: Hit.h:184
Hit & AddExprs(const char *key, const char *value)
Definition: Hit.h:194
const Aws::String & GetId() const
Definition: Hit.h:49
Hit & AddExprs(Aws::String &&key, Aws::String &&value)
Definition: Hit.h:179
void SetId(const char *value)
Definition: Hit.h:64
Hit & WithId(Aws::String &&value)
Definition: Hit.h:74
Hit & AddFields(const char *key, Aws::Vector< Aws::String > &&value)
Definition: Hit.h:129
void SetId(const Aws::String &value)
Definition: Hit.h:54
Hit & AddFields(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: Hit.h:119
const Aws::Map< Aws::String, Aws::String > & GetExprs() const
Definition: Hit.h:139
Hit & AddHighlights(const char *key, Aws::String &&value)
Definition: Hit.h:244
Hit & AddFields(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: Hit.h:114
JSON (JavaScript Object Notation).