AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
IndexField.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/cloudsearch/model/DateArrayOptions.h>
9#include <aws/cloudsearch/model/DateOptions.h>
10#include <aws/cloudsearch/model/DoubleArrayOptions.h>
11#include <aws/cloudsearch/model/DoubleOptions.h>
12#include <aws/cloudsearch/model/IndexFieldType.h>
13#include <aws/cloudsearch/model/IntArrayOptions.h>
14#include <aws/cloudsearch/model/IntOptions.h>
15#include <aws/cloudsearch/model/LatLonOptions.h>
16#include <aws/cloudsearch/model/LiteralArrayOptions.h>
17#include <aws/cloudsearch/model/LiteralOptions.h>
18#include <aws/cloudsearch/model/TextArrayOptions.h>
19#include <aws/cloudsearch/model/TextOptions.h>
20#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
21#include <aws/core/utils/memory/stl/AWSString.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Xml {
28class XmlNode;
29} // namespace Xml
30} // namespace Utils
31namespace CloudSearch {
32namespace Model {
33
42 public:
43 AWS_CLOUDSEARCH_API IndexField() = default;
44 AWS_CLOUDSEARCH_API IndexField(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_CLOUDSEARCH_API IndexField& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
51
64 inline const Aws::String& GetIndexFieldName() const { return m_indexFieldName; }
65 inline bool IndexFieldNameHasBeenSet() const { return m_indexFieldNameHasBeenSet; }
66 template <typename IndexFieldNameT = Aws::String>
67 void SetIndexFieldName(IndexFieldNameT&& value) {
68 m_indexFieldNameHasBeenSet = true;
69 m_indexFieldName = std::forward<IndexFieldNameT>(value);
70 }
71 template <typename IndexFieldNameT = Aws::String>
72 IndexField& WithIndexFieldName(IndexFieldNameT&& value) {
73 SetIndexFieldName(std::forward<IndexFieldNameT>(value));
74 return *this;
75 }
77
79
80 inline IndexFieldType GetIndexFieldType() const { return m_indexFieldType; }
81 inline bool IndexFieldTypeHasBeenSet() const { return m_indexFieldTypeHasBeenSet; }
82 inline void SetIndexFieldType(IndexFieldType value) {
83 m_indexFieldTypeHasBeenSet = true;
84 m_indexFieldType = value;
85 }
87 SetIndexFieldType(value);
88 return *this;
89 }
91
93
94 inline const IntOptions& GetIntOptions() const { return m_intOptions; }
95 inline bool IntOptionsHasBeenSet() const { return m_intOptionsHasBeenSet; }
96 template <typename IntOptionsT = IntOptions>
97 void SetIntOptions(IntOptionsT&& value) {
98 m_intOptionsHasBeenSet = true;
99 m_intOptions = std::forward<IntOptionsT>(value);
100 }
101 template <typename IntOptionsT = IntOptions>
102 IndexField& WithIntOptions(IntOptionsT&& value) {
103 SetIntOptions(std::forward<IntOptionsT>(value));
104 return *this;
105 }
107
109
110 inline const DoubleOptions& GetDoubleOptions() const { return m_doubleOptions; }
111 inline bool DoubleOptionsHasBeenSet() const { return m_doubleOptionsHasBeenSet; }
112 template <typename DoubleOptionsT = DoubleOptions>
113 void SetDoubleOptions(DoubleOptionsT&& value) {
114 m_doubleOptionsHasBeenSet = true;
115 m_doubleOptions = std::forward<DoubleOptionsT>(value);
116 }
117 template <typename DoubleOptionsT = DoubleOptions>
118 IndexField& WithDoubleOptions(DoubleOptionsT&& value) {
119 SetDoubleOptions(std::forward<DoubleOptionsT>(value));
120 return *this;
121 }
123
125
126 inline const LiteralOptions& GetLiteralOptions() const { return m_literalOptions; }
127 inline bool LiteralOptionsHasBeenSet() const { return m_literalOptionsHasBeenSet; }
128 template <typename LiteralOptionsT = LiteralOptions>
129 void SetLiteralOptions(LiteralOptionsT&& value) {
130 m_literalOptionsHasBeenSet = true;
131 m_literalOptions = std::forward<LiteralOptionsT>(value);
132 }
133 template <typename LiteralOptionsT = LiteralOptions>
134 IndexField& WithLiteralOptions(LiteralOptionsT&& value) {
135 SetLiteralOptions(std::forward<LiteralOptionsT>(value));
136 return *this;
137 }
139
141
142 inline const TextOptions& GetTextOptions() const { return m_textOptions; }
143 inline bool TextOptionsHasBeenSet() const { return m_textOptionsHasBeenSet; }
144 template <typename TextOptionsT = TextOptions>
145 void SetTextOptions(TextOptionsT&& value) {
146 m_textOptionsHasBeenSet = true;
147 m_textOptions = std::forward<TextOptionsT>(value);
148 }
149 template <typename TextOptionsT = TextOptions>
150 IndexField& WithTextOptions(TextOptionsT&& value) {
151 SetTextOptions(std::forward<TextOptionsT>(value));
152 return *this;
153 }
155
157
158 inline const DateOptions& GetDateOptions() const { return m_dateOptions; }
159 inline bool DateOptionsHasBeenSet() const { return m_dateOptionsHasBeenSet; }
160 template <typename DateOptionsT = DateOptions>
161 void SetDateOptions(DateOptionsT&& value) {
162 m_dateOptionsHasBeenSet = true;
163 m_dateOptions = std::forward<DateOptionsT>(value);
164 }
165 template <typename DateOptionsT = DateOptions>
166 IndexField& WithDateOptions(DateOptionsT&& value) {
167 SetDateOptions(std::forward<DateOptionsT>(value));
168 return *this;
169 }
171
173
174 inline const LatLonOptions& GetLatLonOptions() const { return m_latLonOptions; }
175 inline bool LatLonOptionsHasBeenSet() const { return m_latLonOptionsHasBeenSet; }
176 template <typename LatLonOptionsT = LatLonOptions>
177 void SetLatLonOptions(LatLonOptionsT&& value) {
178 m_latLonOptionsHasBeenSet = true;
179 m_latLonOptions = std::forward<LatLonOptionsT>(value);
180 }
181 template <typename LatLonOptionsT = LatLonOptions>
182 IndexField& WithLatLonOptions(LatLonOptionsT&& value) {
183 SetLatLonOptions(std::forward<LatLonOptionsT>(value));
184 return *this;
185 }
187
189
190 inline const IntArrayOptions& GetIntArrayOptions() const { return m_intArrayOptions; }
191 inline bool IntArrayOptionsHasBeenSet() const { return m_intArrayOptionsHasBeenSet; }
192 template <typename IntArrayOptionsT = IntArrayOptions>
193 void SetIntArrayOptions(IntArrayOptionsT&& value) {
194 m_intArrayOptionsHasBeenSet = true;
195 m_intArrayOptions = std::forward<IntArrayOptionsT>(value);
196 }
197 template <typename IntArrayOptionsT = IntArrayOptions>
198 IndexField& WithIntArrayOptions(IntArrayOptionsT&& value) {
199 SetIntArrayOptions(std::forward<IntArrayOptionsT>(value));
200 return *this;
201 }
203
205
206 inline const DoubleArrayOptions& GetDoubleArrayOptions() const { return m_doubleArrayOptions; }
207 inline bool DoubleArrayOptionsHasBeenSet() const { return m_doubleArrayOptionsHasBeenSet; }
208 template <typename DoubleArrayOptionsT = DoubleArrayOptions>
209 void SetDoubleArrayOptions(DoubleArrayOptionsT&& value) {
210 m_doubleArrayOptionsHasBeenSet = true;
211 m_doubleArrayOptions = std::forward<DoubleArrayOptionsT>(value);
212 }
213 template <typename DoubleArrayOptionsT = DoubleArrayOptions>
214 IndexField& WithDoubleArrayOptions(DoubleArrayOptionsT&& value) {
215 SetDoubleArrayOptions(std::forward<DoubleArrayOptionsT>(value));
216 return *this;
217 }
219
221
222 inline const LiteralArrayOptions& GetLiteralArrayOptions() const { return m_literalArrayOptions; }
223 inline bool LiteralArrayOptionsHasBeenSet() const { return m_literalArrayOptionsHasBeenSet; }
224 template <typename LiteralArrayOptionsT = LiteralArrayOptions>
225 void SetLiteralArrayOptions(LiteralArrayOptionsT&& value) {
226 m_literalArrayOptionsHasBeenSet = true;
227 m_literalArrayOptions = std::forward<LiteralArrayOptionsT>(value);
228 }
229 template <typename LiteralArrayOptionsT = LiteralArrayOptions>
230 IndexField& WithLiteralArrayOptions(LiteralArrayOptionsT&& value) {
231 SetLiteralArrayOptions(std::forward<LiteralArrayOptionsT>(value));
232 return *this;
233 }
235
237
238 inline const TextArrayOptions& GetTextArrayOptions() const { return m_textArrayOptions; }
239 inline bool TextArrayOptionsHasBeenSet() const { return m_textArrayOptionsHasBeenSet; }
240 template <typename TextArrayOptionsT = TextArrayOptions>
241 void SetTextArrayOptions(TextArrayOptionsT&& value) {
242 m_textArrayOptionsHasBeenSet = true;
243 m_textArrayOptions = std::forward<TextArrayOptionsT>(value);
244 }
245 template <typename TextArrayOptionsT = TextArrayOptions>
246 IndexField& WithTextArrayOptions(TextArrayOptionsT&& value) {
247 SetTextArrayOptions(std::forward<TextArrayOptionsT>(value));
248 return *this;
249 }
251
253
254 inline const DateArrayOptions& GetDateArrayOptions() const { return m_dateArrayOptions; }
255 inline bool DateArrayOptionsHasBeenSet() const { return m_dateArrayOptionsHasBeenSet; }
256 template <typename DateArrayOptionsT = DateArrayOptions>
257 void SetDateArrayOptions(DateArrayOptionsT&& value) {
258 m_dateArrayOptionsHasBeenSet = true;
259 m_dateArrayOptions = std::forward<DateArrayOptionsT>(value);
260 }
261 template <typename DateArrayOptionsT = DateArrayOptions>
262 IndexField& WithDateArrayOptions(DateArrayOptionsT&& value) {
263 SetDateArrayOptions(std::forward<DateArrayOptionsT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_indexFieldName;
269
270 IndexFieldType m_indexFieldType{IndexFieldType::NOT_SET};
271
272 IntOptions m_intOptions;
273
274 DoubleOptions m_doubleOptions;
275
276 LiteralOptions m_literalOptions;
277
278 TextOptions m_textOptions;
279
280 DateOptions m_dateOptions;
281
282 LatLonOptions m_latLonOptions;
283
284 IntArrayOptions m_intArrayOptions;
285
286 DoubleArrayOptions m_doubleArrayOptions;
287
288 LiteralArrayOptions m_literalArrayOptions;
289
290 TextArrayOptions m_textArrayOptions;
291
292 DateArrayOptions m_dateArrayOptions;
293 bool m_indexFieldNameHasBeenSet = false;
294 bool m_indexFieldTypeHasBeenSet = false;
295 bool m_intOptionsHasBeenSet = false;
296 bool m_doubleOptionsHasBeenSet = false;
297 bool m_literalOptionsHasBeenSet = false;
298 bool m_textOptionsHasBeenSet = false;
299 bool m_dateOptionsHasBeenSet = false;
300 bool m_latLonOptionsHasBeenSet = false;
301 bool m_intArrayOptionsHasBeenSet = false;
302 bool m_doubleArrayOptionsHasBeenSet = false;
303 bool m_literalArrayOptionsHasBeenSet = false;
304 bool m_textArrayOptionsHasBeenSet = false;
305 bool m_dateArrayOptionsHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace CloudSearch
310} // namespace Aws
void SetIntOptions(IntOptionsT &&value)
Definition IndexField.h:97
const LiteralOptions & GetLiteralOptions() const
Definition IndexField.h:126
const DateArrayOptions & GetDateArrayOptions() const
Definition IndexField.h:254
IndexField & WithIndexFieldType(IndexFieldType value)
Definition IndexField.h:86
void SetIndexFieldName(IndexFieldNameT &&value)
Definition IndexField.h:67
IndexField & WithLatLonOptions(LatLonOptionsT &&value)
Definition IndexField.h:182
IndexField & WithDateOptions(DateOptionsT &&value)
Definition IndexField.h:166
AWS_CLOUDSEARCH_API IndexField & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIntArrayOptions(IntArrayOptionsT &&value)
Definition IndexField.h:193
const DoubleOptions & GetDoubleOptions() const
Definition IndexField.h:110
const IntOptions & GetIntOptions() const
Definition IndexField.h:94
void SetTextOptions(TextOptionsT &&value)
Definition IndexField.h:145
const TextArrayOptions & GetTextArrayOptions() const
Definition IndexField.h:238
IndexField & WithIntOptions(IntOptionsT &&value)
Definition IndexField.h:102
AWS_CLOUDSEARCH_API IndexField(const Aws::Utils::Xml::XmlNode &xmlNode)
const IntArrayOptions & GetIntArrayOptions() const
Definition IndexField.h:190
const LatLonOptions & GetLatLonOptions() const
Definition IndexField.h:174
IndexField & WithLiteralArrayOptions(LiteralArrayOptionsT &&value)
Definition IndexField.h:230
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IndexField & WithDoubleOptions(DoubleOptionsT &&value)
Definition IndexField.h:118
IndexField & WithLiteralOptions(LiteralOptionsT &&value)
Definition IndexField.h:134
void SetLatLonOptions(LatLonOptionsT &&value)
Definition IndexField.h:177
void SetTextArrayOptions(TextArrayOptionsT &&value)
Definition IndexField.h:241
const Aws::String & GetIndexFieldName() const
Definition IndexField.h:64
const TextOptions & GetTextOptions() const
Definition IndexField.h:142
void SetDoubleArrayOptions(DoubleArrayOptionsT &&value)
Definition IndexField.h:209
const DateOptions & GetDateOptions() const
Definition IndexField.h:158
IndexField & WithIntArrayOptions(IntArrayOptionsT &&value)
Definition IndexField.h:198
IndexField & WithDoubleArrayOptions(DoubleArrayOptionsT &&value)
Definition IndexField.h:214
IndexField & WithIndexFieldName(IndexFieldNameT &&value)
Definition IndexField.h:72
IndexField & WithDateArrayOptions(DateArrayOptionsT &&value)
Definition IndexField.h:262
const DoubleArrayOptions & GetDoubleArrayOptions() const
Definition IndexField.h:206
void SetDoubleOptions(DoubleOptionsT &&value)
Definition IndexField.h:113
IndexFieldType GetIndexFieldType() const
Definition IndexField.h:80
void SetLiteralArrayOptions(LiteralArrayOptionsT &&value)
Definition IndexField.h:225
const LiteralArrayOptions & GetLiteralArrayOptions() const
Definition IndexField.h:222
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API IndexField()=default
void SetDateArrayOptions(DateArrayOptionsT &&value)
Definition IndexField.h:257
IndexField & WithTextArrayOptions(TextArrayOptionsT &&value)
Definition IndexField.h:246
void SetDateOptions(DateOptionsT &&value)
Definition IndexField.h:161
IndexField & WithTextOptions(TextOptionsT &&value)
Definition IndexField.h:150
void SetLiteralOptions(LiteralOptionsT &&value)
Definition IndexField.h:129
void SetIndexFieldType(IndexFieldType value)
Definition IndexField.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream