AWS SDK for C++  0.14.3
AWS SDK for C++
IndexField.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
31 
32 namespace Aws
33 {
34 namespace Utils
35 {
36 namespace Xml
37 {
38  class XmlNode;
39 } // namespace Xml
40 } // namespace Utils
41 namespace CloudSearch
42 {
43 namespace Model
44 {
45 
52  {
53  public:
54  IndexField();
55  IndexField(const Aws::Utils::Xml::XmlNode& xmlNode);
56  IndexField& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
57 
58  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
59  void OutputToStream(Aws::OStream& oStream, const char* location) const;
60 
74  inline const Aws::String& GetIndexFieldName() const{ return m_indexFieldName; }
75 
89  inline void SetIndexFieldName(const Aws::String& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = value; }
90 
104  inline void SetIndexFieldName(Aws::String&& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = value; }
105 
119  inline void SetIndexFieldName(const char* value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName.assign(value); }
120 
134  inline IndexField& WithIndexFieldName(const Aws::String& value) { SetIndexFieldName(value); return *this;}
135 
149  inline IndexField& WithIndexFieldName(Aws::String&& value) { SetIndexFieldName(value); return *this;}
150 
164  inline IndexField& WithIndexFieldName(const char* value) { SetIndexFieldName(value); return *this;}
165 
166 
167  inline const IndexFieldType& GetIndexFieldType() const{ return m_indexFieldType; }
168 
169 
170  inline void SetIndexFieldType(const IndexFieldType& value) { m_indexFieldTypeHasBeenSet = true; m_indexFieldType = value; }
171 
172 
173  inline void SetIndexFieldType(IndexFieldType&& value) { m_indexFieldTypeHasBeenSet = true; m_indexFieldType = value; }
174 
175 
176  inline IndexField& WithIndexFieldType(const IndexFieldType& value) { SetIndexFieldType(value); return *this;}
177 
178 
179  inline IndexField& WithIndexFieldType(IndexFieldType&& value) { SetIndexFieldType(value); return *this;}
180 
181 
182  inline const IntOptions& GetIntOptions() const{ return m_intOptions; }
183 
184 
185  inline void SetIntOptions(const IntOptions& value) { m_intOptionsHasBeenSet = true; m_intOptions = value; }
186 
187 
188  inline void SetIntOptions(IntOptions&& value) { m_intOptionsHasBeenSet = true; m_intOptions = value; }
189 
190 
191  inline IndexField& WithIntOptions(const IntOptions& value) { SetIntOptions(value); return *this;}
192 
193 
194  inline IndexField& WithIntOptions(IntOptions&& value) { SetIntOptions(value); return *this;}
195 
196 
197  inline const DoubleOptions& GetDoubleOptions() const{ return m_doubleOptions; }
198 
199 
200  inline void SetDoubleOptions(const DoubleOptions& value) { m_doubleOptionsHasBeenSet = true; m_doubleOptions = value; }
201 
202 
203  inline void SetDoubleOptions(DoubleOptions&& value) { m_doubleOptionsHasBeenSet = true; m_doubleOptions = value; }
204 
205 
206  inline IndexField& WithDoubleOptions(const DoubleOptions& value) { SetDoubleOptions(value); return *this;}
207 
208 
209  inline IndexField& WithDoubleOptions(DoubleOptions&& value) { SetDoubleOptions(value); return *this;}
210 
211 
212  inline const LiteralOptions& GetLiteralOptions() const{ return m_literalOptions; }
213 
214 
215  inline void SetLiteralOptions(const LiteralOptions& value) { m_literalOptionsHasBeenSet = true; m_literalOptions = value; }
216 
217 
218  inline void SetLiteralOptions(LiteralOptions&& value) { m_literalOptionsHasBeenSet = true; m_literalOptions = value; }
219 
220 
221  inline IndexField& WithLiteralOptions(const LiteralOptions& value) { SetLiteralOptions(value); return *this;}
222 
223 
224  inline IndexField& WithLiteralOptions(LiteralOptions&& value) { SetLiteralOptions(value); return *this;}
225 
226 
227  inline const TextOptions& GetTextOptions() const{ return m_textOptions; }
228 
229 
230  inline void SetTextOptions(const TextOptions& value) { m_textOptionsHasBeenSet = true; m_textOptions = value; }
231 
232 
233  inline void SetTextOptions(TextOptions&& value) { m_textOptionsHasBeenSet = true; m_textOptions = value; }
234 
235 
236  inline IndexField& WithTextOptions(const TextOptions& value) { SetTextOptions(value); return *this;}
237 
238 
239  inline IndexField& WithTextOptions(TextOptions&& value) { SetTextOptions(value); return *this;}
240 
241 
242  inline const DateOptions& GetDateOptions() const{ return m_dateOptions; }
243 
244 
245  inline void SetDateOptions(const DateOptions& value) { m_dateOptionsHasBeenSet = true; m_dateOptions = value; }
246 
247 
248  inline void SetDateOptions(DateOptions&& value) { m_dateOptionsHasBeenSet = true; m_dateOptions = value; }
249 
250 
251  inline IndexField& WithDateOptions(const DateOptions& value) { SetDateOptions(value); return *this;}
252 
253 
254  inline IndexField& WithDateOptions(DateOptions&& value) { SetDateOptions(value); return *this;}
255 
256 
257  inline const LatLonOptions& GetLatLonOptions() const{ return m_latLonOptions; }
258 
259 
260  inline void SetLatLonOptions(const LatLonOptions& value) { m_latLonOptionsHasBeenSet = true; m_latLonOptions = value; }
261 
262 
263  inline void SetLatLonOptions(LatLonOptions&& value) { m_latLonOptionsHasBeenSet = true; m_latLonOptions = value; }
264 
265 
266  inline IndexField& WithLatLonOptions(const LatLonOptions& value) { SetLatLonOptions(value); return *this;}
267 
268 
269  inline IndexField& WithLatLonOptions(LatLonOptions&& value) { SetLatLonOptions(value); return *this;}
270 
271 
272  inline const IntArrayOptions& GetIntArrayOptions() const{ return m_intArrayOptions; }
273 
274 
275  inline void SetIntArrayOptions(const IntArrayOptions& value) { m_intArrayOptionsHasBeenSet = true; m_intArrayOptions = value; }
276 
277 
278  inline void SetIntArrayOptions(IntArrayOptions&& value) { m_intArrayOptionsHasBeenSet = true; m_intArrayOptions = value; }
279 
280 
281  inline IndexField& WithIntArrayOptions(const IntArrayOptions& value) { SetIntArrayOptions(value); return *this;}
282 
283 
284  inline IndexField& WithIntArrayOptions(IntArrayOptions&& value) { SetIntArrayOptions(value); return *this;}
285 
286 
287  inline const DoubleArrayOptions& GetDoubleArrayOptions() const{ return m_doubleArrayOptions; }
288 
289 
290  inline void SetDoubleArrayOptions(const DoubleArrayOptions& value) { m_doubleArrayOptionsHasBeenSet = true; m_doubleArrayOptions = value; }
291 
292 
293  inline void SetDoubleArrayOptions(DoubleArrayOptions&& value) { m_doubleArrayOptionsHasBeenSet = true; m_doubleArrayOptions = value; }
294 
295 
296  inline IndexField& WithDoubleArrayOptions(const DoubleArrayOptions& value) { SetDoubleArrayOptions(value); return *this;}
297 
298 
299  inline IndexField& WithDoubleArrayOptions(DoubleArrayOptions&& value) { SetDoubleArrayOptions(value); return *this;}
300 
301 
302  inline const LiteralArrayOptions& GetLiteralArrayOptions() const{ return m_literalArrayOptions; }
303 
304 
305  inline void SetLiteralArrayOptions(const LiteralArrayOptions& value) { m_literalArrayOptionsHasBeenSet = true; m_literalArrayOptions = value; }
306 
307 
308  inline void SetLiteralArrayOptions(LiteralArrayOptions&& value) { m_literalArrayOptionsHasBeenSet = true; m_literalArrayOptions = value; }
309 
310 
311  inline IndexField& WithLiteralArrayOptions(const LiteralArrayOptions& value) { SetLiteralArrayOptions(value); return *this;}
312 
313 
314  inline IndexField& WithLiteralArrayOptions(LiteralArrayOptions&& value) { SetLiteralArrayOptions(value); return *this;}
315 
316 
317  inline const TextArrayOptions& GetTextArrayOptions() const{ return m_textArrayOptions; }
318 
319 
320  inline void SetTextArrayOptions(const TextArrayOptions& value) { m_textArrayOptionsHasBeenSet = true; m_textArrayOptions = value; }
321 
322 
323  inline void SetTextArrayOptions(TextArrayOptions&& value) { m_textArrayOptionsHasBeenSet = true; m_textArrayOptions = value; }
324 
325 
326  inline IndexField& WithTextArrayOptions(const TextArrayOptions& value) { SetTextArrayOptions(value); return *this;}
327 
328 
329  inline IndexField& WithTextArrayOptions(TextArrayOptions&& value) { SetTextArrayOptions(value); return *this;}
330 
331 
332  inline const DateArrayOptions& GetDateArrayOptions() const{ return m_dateArrayOptions; }
333 
334 
335  inline void SetDateArrayOptions(const DateArrayOptions& value) { m_dateArrayOptionsHasBeenSet = true; m_dateArrayOptions = value; }
336 
337 
338  inline void SetDateArrayOptions(DateArrayOptions&& value) { m_dateArrayOptionsHasBeenSet = true; m_dateArrayOptions = value; }
339 
340 
341  inline IndexField& WithDateArrayOptions(const DateArrayOptions& value) { SetDateArrayOptions(value); return *this;}
342 
343 
344  inline IndexField& WithDateArrayOptions(DateArrayOptions&& value) { SetDateArrayOptions(value); return *this;}
345 
346  private:
347  Aws::String m_indexFieldName;
348  bool m_indexFieldNameHasBeenSet;
349  IndexFieldType m_indexFieldType;
350  bool m_indexFieldTypeHasBeenSet;
351  IntOptions m_intOptions;
352  bool m_intOptionsHasBeenSet;
353  DoubleOptions m_doubleOptions;
354  bool m_doubleOptionsHasBeenSet;
355  LiteralOptions m_literalOptions;
356  bool m_literalOptionsHasBeenSet;
357  TextOptions m_textOptions;
358  bool m_textOptionsHasBeenSet;
359  DateOptions m_dateOptions;
360  bool m_dateOptionsHasBeenSet;
361  LatLonOptions m_latLonOptions;
362  bool m_latLonOptionsHasBeenSet;
363  IntArrayOptions m_intArrayOptions;
364  bool m_intArrayOptionsHasBeenSet;
365  DoubleArrayOptions m_doubleArrayOptions;
366  bool m_doubleArrayOptionsHasBeenSet;
367  LiteralArrayOptions m_literalArrayOptions;
368  bool m_literalArrayOptionsHasBeenSet;
369  TextArrayOptions m_textArrayOptions;
370  bool m_textArrayOptionsHasBeenSet;
371  DateArrayOptions m_dateArrayOptions;
372  bool m_dateArrayOptionsHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace CloudSearch
377 } // namespace Aws
void SetDoubleArrayOptions(const DoubleArrayOptions &value)
Definition: IndexField.h:290
void SetIndexFieldName(Aws::String &&value)
Definition: IndexField.h:104
IndexField & WithIndexFieldType(const IndexFieldType &value)
Definition: IndexField.h:176
const TextOptions & GetTextOptions() const
Definition: IndexField.h:227
IndexField & WithIntOptions(const IntOptions &value)
Definition: IndexField.h:191
const IntArrayOptions & GetIntArrayOptions() const
Definition: IndexField.h:272
void SetLiteralOptions(LiteralOptions &&value)
Definition: IndexField.h:218
IndexField & WithIntArrayOptions(const IntArrayOptions &value)
Definition: IndexField.h:281
IndexField & WithTextOptions(TextOptions &&value)
Definition: IndexField.h:239
IndexField & WithDoubleArrayOptions(DoubleArrayOptions &&value)
Definition: IndexField.h:299
IndexField & WithLiteralArrayOptions(LiteralArrayOptions &&value)
Definition: IndexField.h:314
void SetTextArrayOptions(TextArrayOptions &&value)
Definition: IndexField.h:323
IndexField & WithLiteralOptions(const LiteralOptions &value)
Definition: IndexField.h:221
void SetTextOptions(const TextOptions &value)
Definition: IndexField.h:230
IndexField & WithIndexFieldName(const char *value)
Definition: IndexField.h:164
const DateArrayOptions & GetDateArrayOptions() const
Definition: IndexField.h:332
void SetDateOptions(DateOptions &&value)
Definition: IndexField.h:248
IndexField & WithDateOptions(DateOptions &&value)
Definition: IndexField.h:254
void SetLiteralArrayOptions(const LiteralArrayOptions &value)
Definition: IndexField.h:305
void SetIndexFieldName(const Aws::String &value)
Definition: IndexField.h:89
const DoubleOptions & GetDoubleOptions() const
Definition: IndexField.h:197
IndexField & WithDateArrayOptions(const DateArrayOptions &value)
Definition: IndexField.h:341
const TextArrayOptions & GetTextArrayOptions() const
Definition: IndexField.h:317
IndexField & WithLatLonOptions(const LatLonOptions &value)
Definition: IndexField.h:266
void SetLatLonOptions(const LatLonOptions &value)
Definition: IndexField.h:260
IndexField & WithIntOptions(IntOptions &&value)
Definition: IndexField.h:194
IndexField & WithTextArrayOptions(TextArrayOptions &&value)
Definition: IndexField.h:329
void SetDateArrayOptions(const DateArrayOptions &value)
Definition: IndexField.h:335
IndexField & WithDateOptions(const DateOptions &value)
Definition: IndexField.h:251
void SetIndexFieldType(const IndexFieldType &value)
Definition: IndexField.h:170
IndexField & WithTextOptions(const TextOptions &value)
Definition: IndexField.h:236
IndexField & WithIndexFieldName(const Aws::String &value)
Definition: IndexField.h:134
const LiteralArrayOptions & GetLiteralArrayOptions() const
Definition: IndexField.h:302
IndexField & WithDateArrayOptions(DateArrayOptions &&value)
Definition: IndexField.h:344
const IntOptions & GetIntOptions() const
Definition: IndexField.h:182
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const DoubleArrayOptions & GetDoubleArrayOptions() const
Definition: IndexField.h:287
void SetDoubleOptions(const DoubleOptions &value)
Definition: IndexField.h:200
IndexField & WithIndexFieldName(Aws::String &&value)
Definition: IndexField.h:149
IndexField & WithLiteralOptions(LiteralOptions &&value)
Definition: IndexField.h:224
IndexField & WithDoubleOptions(DoubleOptions &&value)
Definition: IndexField.h:209
void SetIntOptions(IntOptions &&value)
Definition: IndexField.h:188
void SetLiteralOptions(const LiteralOptions &value)
Definition: IndexField.h:215
IndexField & WithLatLonOptions(LatLonOptions &&value)
Definition: IndexField.h:269
void SetTextOptions(TextOptions &&value)
Definition: IndexField.h:233
void SetLiteralArrayOptions(LiteralArrayOptions &&value)
Definition: IndexField.h:308
void SetDoubleArrayOptions(DoubleArrayOptions &&value)
Definition: IndexField.h:293
const LatLonOptions & GetLatLonOptions() const
Definition: IndexField.h:257
void SetDateArrayOptions(DateArrayOptions &&value)
Definition: IndexField.h:338
IndexField & WithTextArrayOptions(const TextArrayOptions &value)
Definition: IndexField.h:326
void SetIndexFieldName(const char *value)
Definition: IndexField.h:119
#define AWS_CLOUDSEARCH_API
IndexField & WithIndexFieldType(IndexFieldType &&value)
Definition: IndexField.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetIntOptions(const IntOptions &value)
Definition: IndexField.h:185
const LiteralOptions & GetLiteralOptions() const
Definition: IndexField.h:212
void SetIntArrayOptions(const IntArrayOptions &value)
Definition: IndexField.h:275
const Aws::String & GetIndexFieldName() const
Definition: IndexField.h:74
void SetIntArrayOptions(IntArrayOptions &&value)
Definition: IndexField.h:278
IndexField & WithIntArrayOptions(IntArrayOptions &&value)
Definition: IndexField.h:284
IndexField & WithDoubleOptions(const DoubleOptions &value)
Definition: IndexField.h:206
void SetLatLonOptions(LatLonOptions &&value)
Definition: IndexField.h:263
const IndexFieldType & GetIndexFieldType() const
Definition: IndexField.h:167
void SetTextArrayOptions(const TextArrayOptions &value)
Definition: IndexField.h:320
IndexField & WithDoubleArrayOptions(const DoubleArrayOptions &value)
Definition: IndexField.h:296
void SetDateOptions(const DateOptions &value)
Definition: IndexField.h:245
IndexField & WithLiteralArrayOptions(const LiteralArrayOptions &value)
Definition: IndexField.h:311
const DateOptions & GetDateOptions() const
Definition: IndexField.h:242
JSON (JavaScript Object Notation).
void SetDoubleOptions(DoubleOptions &&value)
Definition: IndexField.h:203
void SetIndexFieldType(IndexFieldType &&value)
Definition: IndexField.h:173