AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IndexField.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudsearch/model/IndexFieldType.h>
11#include <aws/cloudsearch/model/IntOptions.h>
12#include <aws/cloudsearch/model/DoubleOptions.h>
13#include <aws/cloudsearch/model/LiteralOptions.h>
14#include <aws/cloudsearch/model/TextOptions.h>
15#include <aws/cloudsearch/model/DateOptions.h>
16#include <aws/cloudsearch/model/LatLonOptions.h>
17#include <aws/cloudsearch/model/IntArrayOptions.h>
18#include <aws/cloudsearch/model/DoubleArrayOptions.h>
19#include <aws/cloudsearch/model/LiteralArrayOptions.h>
20#include <aws/cloudsearch/model/TextArrayOptions.h>
21#include <aws/cloudsearch/model/DateArrayOptions.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Xml
29{
30 class XmlNode;
31} // namespace Xml
32} // namespace Utils
33namespace CloudSearch
34{
35namespace Model
36{
37
46 {
47 public:
48 AWS_CLOUDSEARCH_API IndexField();
49 AWS_CLOUDSEARCH_API IndexField(const Aws::Utils::Xml::XmlNode& xmlNode);
50 AWS_CLOUDSEARCH_API IndexField& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51
52 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
53 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
54
55
57
70 inline const Aws::String& GetIndexFieldName() const{ return m_indexFieldName; }
71 inline bool IndexFieldNameHasBeenSet() const { return m_indexFieldNameHasBeenSet; }
72 inline void SetIndexFieldName(const Aws::String& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = value; }
73 inline void SetIndexFieldName(Aws::String&& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = std::move(value); }
74 inline void SetIndexFieldName(const char* value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName.assign(value); }
75 inline IndexField& WithIndexFieldName(const Aws::String& value) { SetIndexFieldName(value); return *this;}
76 inline IndexField& WithIndexFieldName(Aws::String&& value) { SetIndexFieldName(std::move(value)); return *this;}
77 inline IndexField& WithIndexFieldName(const char* value) { SetIndexFieldName(value); return *this;}
79
81
82 inline const IndexFieldType& GetIndexFieldType() const{ return m_indexFieldType; }
83 inline bool IndexFieldTypeHasBeenSet() const { return m_indexFieldTypeHasBeenSet; }
84 inline void SetIndexFieldType(const IndexFieldType& value) { m_indexFieldTypeHasBeenSet = true; m_indexFieldType = value; }
85 inline void SetIndexFieldType(IndexFieldType&& value) { m_indexFieldTypeHasBeenSet = true; m_indexFieldType = std::move(value); }
86 inline IndexField& WithIndexFieldType(const IndexFieldType& value) { SetIndexFieldType(value); return *this;}
87 inline IndexField& WithIndexFieldType(IndexFieldType&& value) { SetIndexFieldType(std::move(value)); return *this;}
89
91
92 inline const IntOptions& GetIntOptions() const{ return m_intOptions; }
93 inline bool IntOptionsHasBeenSet() const { return m_intOptionsHasBeenSet; }
94 inline void SetIntOptions(const IntOptions& value) { m_intOptionsHasBeenSet = true; m_intOptions = value; }
95 inline void SetIntOptions(IntOptions&& value) { m_intOptionsHasBeenSet = true; m_intOptions = std::move(value); }
96 inline IndexField& WithIntOptions(const IntOptions& value) { SetIntOptions(value); return *this;}
97 inline IndexField& WithIntOptions(IntOptions&& value) { SetIntOptions(std::move(value)); return *this;}
99
101
102 inline const DoubleOptions& GetDoubleOptions() const{ return m_doubleOptions; }
103 inline bool DoubleOptionsHasBeenSet() const { return m_doubleOptionsHasBeenSet; }
104 inline void SetDoubleOptions(const DoubleOptions& value) { m_doubleOptionsHasBeenSet = true; m_doubleOptions = value; }
105 inline void SetDoubleOptions(DoubleOptions&& value) { m_doubleOptionsHasBeenSet = true; m_doubleOptions = std::move(value); }
106 inline IndexField& WithDoubleOptions(const DoubleOptions& value) { SetDoubleOptions(value); return *this;}
107 inline IndexField& WithDoubleOptions(DoubleOptions&& value) { SetDoubleOptions(std::move(value)); return *this;}
109
111
112 inline const LiteralOptions& GetLiteralOptions() const{ return m_literalOptions; }
113 inline bool LiteralOptionsHasBeenSet() const { return m_literalOptionsHasBeenSet; }
114 inline void SetLiteralOptions(const LiteralOptions& value) { m_literalOptionsHasBeenSet = true; m_literalOptions = value; }
115 inline void SetLiteralOptions(LiteralOptions&& value) { m_literalOptionsHasBeenSet = true; m_literalOptions = std::move(value); }
116 inline IndexField& WithLiteralOptions(const LiteralOptions& value) { SetLiteralOptions(value); return *this;}
117 inline IndexField& WithLiteralOptions(LiteralOptions&& value) { SetLiteralOptions(std::move(value)); return *this;}
119
121
122 inline const TextOptions& GetTextOptions() const{ return m_textOptions; }
123 inline bool TextOptionsHasBeenSet() const { return m_textOptionsHasBeenSet; }
124 inline void SetTextOptions(const TextOptions& value) { m_textOptionsHasBeenSet = true; m_textOptions = value; }
125 inline void SetTextOptions(TextOptions&& value) { m_textOptionsHasBeenSet = true; m_textOptions = std::move(value); }
126 inline IndexField& WithTextOptions(const TextOptions& value) { SetTextOptions(value); return *this;}
127 inline IndexField& WithTextOptions(TextOptions&& value) { SetTextOptions(std::move(value)); return *this;}
129
131
132 inline const DateOptions& GetDateOptions() const{ return m_dateOptions; }
133 inline bool DateOptionsHasBeenSet() const { return m_dateOptionsHasBeenSet; }
134 inline void SetDateOptions(const DateOptions& value) { m_dateOptionsHasBeenSet = true; m_dateOptions = value; }
135 inline void SetDateOptions(DateOptions&& value) { m_dateOptionsHasBeenSet = true; m_dateOptions = std::move(value); }
136 inline IndexField& WithDateOptions(const DateOptions& value) { SetDateOptions(value); return *this;}
137 inline IndexField& WithDateOptions(DateOptions&& value) { SetDateOptions(std::move(value)); return *this;}
139
141
142 inline const LatLonOptions& GetLatLonOptions() const{ return m_latLonOptions; }
143 inline bool LatLonOptionsHasBeenSet() const { return m_latLonOptionsHasBeenSet; }
144 inline void SetLatLonOptions(const LatLonOptions& value) { m_latLonOptionsHasBeenSet = true; m_latLonOptions = value; }
145 inline void SetLatLonOptions(LatLonOptions&& value) { m_latLonOptionsHasBeenSet = true; m_latLonOptions = std::move(value); }
146 inline IndexField& WithLatLonOptions(const LatLonOptions& value) { SetLatLonOptions(value); return *this;}
147 inline IndexField& WithLatLonOptions(LatLonOptions&& value) { SetLatLonOptions(std::move(value)); return *this;}
149
151
152 inline const IntArrayOptions& GetIntArrayOptions() const{ return m_intArrayOptions; }
153 inline bool IntArrayOptionsHasBeenSet() const { return m_intArrayOptionsHasBeenSet; }
154 inline void SetIntArrayOptions(const IntArrayOptions& value) { m_intArrayOptionsHasBeenSet = true; m_intArrayOptions = value; }
155 inline void SetIntArrayOptions(IntArrayOptions&& value) { m_intArrayOptionsHasBeenSet = true; m_intArrayOptions = std::move(value); }
156 inline IndexField& WithIntArrayOptions(const IntArrayOptions& value) { SetIntArrayOptions(value); return *this;}
157 inline IndexField& WithIntArrayOptions(IntArrayOptions&& value) { SetIntArrayOptions(std::move(value)); return *this;}
159
161
162 inline const DoubleArrayOptions& GetDoubleArrayOptions() const{ return m_doubleArrayOptions; }
163 inline bool DoubleArrayOptionsHasBeenSet() const { return m_doubleArrayOptionsHasBeenSet; }
164 inline void SetDoubleArrayOptions(const DoubleArrayOptions& value) { m_doubleArrayOptionsHasBeenSet = true; m_doubleArrayOptions = value; }
165 inline void SetDoubleArrayOptions(DoubleArrayOptions&& value) { m_doubleArrayOptionsHasBeenSet = true; m_doubleArrayOptions = std::move(value); }
166 inline IndexField& WithDoubleArrayOptions(const DoubleArrayOptions& value) { SetDoubleArrayOptions(value); return *this;}
167 inline IndexField& WithDoubleArrayOptions(DoubleArrayOptions&& value) { SetDoubleArrayOptions(std::move(value)); return *this;}
169
171
172 inline const LiteralArrayOptions& GetLiteralArrayOptions() const{ return m_literalArrayOptions; }
173 inline bool LiteralArrayOptionsHasBeenSet() const { return m_literalArrayOptionsHasBeenSet; }
174 inline void SetLiteralArrayOptions(const LiteralArrayOptions& value) { m_literalArrayOptionsHasBeenSet = true; m_literalArrayOptions = value; }
175 inline void SetLiteralArrayOptions(LiteralArrayOptions&& value) { m_literalArrayOptionsHasBeenSet = true; m_literalArrayOptions = std::move(value); }
177 inline IndexField& WithLiteralArrayOptions(LiteralArrayOptions&& value) { SetLiteralArrayOptions(std::move(value)); return *this;}
179
181
182 inline const TextArrayOptions& GetTextArrayOptions() const{ return m_textArrayOptions; }
183 inline bool TextArrayOptionsHasBeenSet() const { return m_textArrayOptionsHasBeenSet; }
184 inline void SetTextArrayOptions(const TextArrayOptions& value) { m_textArrayOptionsHasBeenSet = true; m_textArrayOptions = value; }
185 inline void SetTextArrayOptions(TextArrayOptions&& value) { m_textArrayOptionsHasBeenSet = true; m_textArrayOptions = std::move(value); }
186 inline IndexField& WithTextArrayOptions(const TextArrayOptions& value) { SetTextArrayOptions(value); return *this;}
187 inline IndexField& WithTextArrayOptions(TextArrayOptions&& value) { SetTextArrayOptions(std::move(value)); return *this;}
189
191
192 inline const DateArrayOptions& GetDateArrayOptions() const{ return m_dateArrayOptions; }
193 inline bool DateArrayOptionsHasBeenSet() const { return m_dateArrayOptionsHasBeenSet; }
194 inline void SetDateArrayOptions(const DateArrayOptions& value) { m_dateArrayOptionsHasBeenSet = true; m_dateArrayOptions = value; }
195 inline void SetDateArrayOptions(DateArrayOptions&& value) { m_dateArrayOptionsHasBeenSet = true; m_dateArrayOptions = std::move(value); }
196 inline IndexField& WithDateArrayOptions(const DateArrayOptions& value) { SetDateArrayOptions(value); return *this;}
197 inline IndexField& WithDateArrayOptions(DateArrayOptions&& value) { SetDateArrayOptions(std::move(value)); return *this;}
199 private:
200
201 Aws::String m_indexFieldName;
202 bool m_indexFieldNameHasBeenSet = false;
203
204 IndexFieldType m_indexFieldType;
205 bool m_indexFieldTypeHasBeenSet = false;
206
207 IntOptions m_intOptions;
208 bool m_intOptionsHasBeenSet = false;
209
210 DoubleOptions m_doubleOptions;
211 bool m_doubleOptionsHasBeenSet = false;
212
213 LiteralOptions m_literalOptions;
214 bool m_literalOptionsHasBeenSet = false;
215
216 TextOptions m_textOptions;
217 bool m_textOptionsHasBeenSet = false;
218
219 DateOptions m_dateOptions;
220 bool m_dateOptionsHasBeenSet = false;
221
222 LatLonOptions m_latLonOptions;
223 bool m_latLonOptionsHasBeenSet = false;
224
225 IntArrayOptions m_intArrayOptions;
226 bool m_intArrayOptionsHasBeenSet = false;
227
228 DoubleArrayOptions m_doubleArrayOptions;
229 bool m_doubleArrayOptionsHasBeenSet = false;
230
231 LiteralArrayOptions m_literalArrayOptions;
232 bool m_literalArrayOptionsHasBeenSet = false;
233
234 TextArrayOptions m_textArrayOptions;
235 bool m_textArrayOptionsHasBeenSet = false;
236
237 DateArrayOptions m_dateArrayOptions;
238 bool m_dateArrayOptionsHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace CloudSearch
243} // namespace Aws
void SetTextOptions(const TextOptions &value)
Definition IndexField.h:124
IndexField & WithDoubleArrayOptions(DoubleArrayOptions &&value)
Definition IndexField.h:167
const LiteralOptions & GetLiteralOptions() const
Definition IndexField.h:112
void SetDateOptions(const DateOptions &value)
Definition IndexField.h:134
IndexField & WithTextOptions(const TextOptions &value)
Definition IndexField.h:126
const DateArrayOptions & GetDateArrayOptions() const
Definition IndexField.h:192
IndexField & WithLiteralArrayOptions(LiteralArrayOptions &&value)
Definition IndexField.h:177
void SetLiteralArrayOptions(LiteralArrayOptions &&value)
Definition IndexField.h:175
void SetIndexFieldType(const IndexFieldType &value)
Definition IndexField.h:84
IndexField & WithIndexFieldType(IndexFieldType &&value)
Definition IndexField.h:87
void SetDoubleArrayOptions(const DoubleArrayOptions &value)
Definition IndexField.h:164
IndexField & WithIndexFieldType(const IndexFieldType &value)
Definition IndexField.h:86
void SetIndexFieldType(IndexFieldType &&value)
Definition IndexField.h:85
void SetIndexFieldName(Aws::String &&value)
Definition IndexField.h:73
AWS_CLOUDSEARCH_API IndexField & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const DoubleOptions & GetDoubleOptions() const
Definition IndexField.h:102
const IntOptions & GetIntOptions() const
Definition IndexField.h:92
IndexField & WithDoubleArrayOptions(const DoubleArrayOptions &value)
Definition IndexField.h:166
IndexField & WithIntArrayOptions(IntArrayOptions &&value)
Definition IndexField.h:157
IndexField & WithIndexFieldName(const char *value)
Definition IndexField.h:77
IndexField & WithTextArrayOptions(TextArrayOptions &&value)
Definition IndexField.h:187
const TextArrayOptions & GetTextArrayOptions() const
Definition IndexField.h:182
AWS_CLOUDSEARCH_API IndexField(const Aws::Utils::Xml::XmlNode &xmlNode)
IndexField & WithDateArrayOptions(const DateArrayOptions &value)
Definition IndexField.h:196
IndexField & WithIntArrayOptions(const IntArrayOptions &value)
Definition IndexField.h:156
const IndexFieldType & GetIndexFieldType() const
Definition IndexField.h:82
const IntArrayOptions & GetIntArrayOptions() const
Definition IndexField.h:152
const LatLonOptions & GetLatLonOptions() const
Definition IndexField.h:142
void SetDateArrayOptions(DateArrayOptions &&value)
Definition IndexField.h:195
IndexField & WithDoubleOptions(DoubleOptions &&value)
Definition IndexField.h:107
IndexField & WithIndexFieldName(const Aws::String &value)
Definition IndexField.h:75
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetIndexFieldName() const
Definition IndexField.h:70
const TextOptions & GetTextOptions() const
Definition IndexField.h:122
void SetLatLonOptions(const LatLonOptions &value)
Definition IndexField.h:144
IndexField & WithLatLonOptions(LatLonOptions &&value)
Definition IndexField.h:147
void SetIndexFieldName(const Aws::String &value)
Definition IndexField.h:72
IndexField & WithTextArrayOptions(const TextArrayOptions &value)
Definition IndexField.h:186
void SetIndexFieldName(const char *value)
Definition IndexField.h:74
void SetIntArrayOptions(const IntArrayOptions &value)
Definition IndexField.h:154
void SetTextOptions(TextOptions &&value)
Definition IndexField.h:125
void SetIntOptions(IntOptions &&value)
Definition IndexField.h:95
void SetIntArrayOptions(IntArrayOptions &&value)
Definition IndexField.h:155
IndexField & WithIndexFieldName(Aws::String &&value)
Definition IndexField.h:76
const DateOptions & GetDateOptions() const
Definition IndexField.h:132
IndexField & WithIntOptions(const IntOptions &value)
Definition IndexField.h:96
void SetTextArrayOptions(TextArrayOptions &&value)
Definition IndexField.h:185
AWS_CLOUDSEARCH_API IndexField()
void SetLiteralArrayOptions(const LiteralArrayOptions &value)
Definition IndexField.h:174
void SetDoubleOptions(DoubleOptions &&value)
Definition IndexField.h:105
void SetDoubleOptions(const DoubleOptions &value)
Definition IndexField.h:104
IndexField & WithTextOptions(TextOptions &&value)
Definition IndexField.h:127
IndexField & WithLatLonOptions(const LatLonOptions &value)
Definition IndexField.h:146
void SetIntOptions(const IntOptions &value)
Definition IndexField.h:94
IndexField & WithDateOptions(DateOptions &&value)
Definition IndexField.h:137
const DoubleArrayOptions & GetDoubleArrayOptions() const
Definition IndexField.h:162
void SetLatLonOptions(LatLonOptions &&value)
Definition IndexField.h:145
const LiteralArrayOptions & GetLiteralArrayOptions() const
Definition IndexField.h:172
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDateArrayOptions(const DateArrayOptions &value)
Definition IndexField.h:194
IndexField & WithDateArrayOptions(DateArrayOptions &&value)
Definition IndexField.h:197
void SetDateOptions(DateOptions &&value)
Definition IndexField.h:135
IndexField & WithLiteralOptions(const LiteralOptions &value)
Definition IndexField.h:116
IndexField & WithLiteralArrayOptions(const LiteralArrayOptions &value)
Definition IndexField.h:176
void SetDoubleArrayOptions(DoubleArrayOptions &&value)
Definition IndexField.h:165
void SetLiteralOptions(LiteralOptions &&value)
Definition IndexField.h:115
IndexField & WithDoubleOptions(const DoubleOptions &value)
Definition IndexField.h:106
IndexField & WithDateOptions(const DateOptions &value)
Definition IndexField.h:136
IndexField & WithIntOptions(IntOptions &&value)
Definition IndexField.h:97
void SetLiteralOptions(const LiteralOptions &value)
Definition IndexField.h:114
void SetTextArrayOptions(const TextArrayOptions &value)
Definition IndexField.h:184
IndexField & WithLiteralOptions(LiteralOptions &&value)
Definition IndexField.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream