AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename IndexFieldNameT = Aws::String>
73 void SetIndexFieldName(IndexFieldNameT&& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = std::forward<IndexFieldNameT>(value); }
74 template<typename IndexFieldNameT = Aws::String>
75 IndexField& WithIndexFieldName(IndexFieldNameT&& value) { SetIndexFieldName(std::forward<IndexFieldNameT>(value)); return *this;}
77
79
80 inline IndexFieldType GetIndexFieldType() const { return m_indexFieldType; }
81 inline bool IndexFieldTypeHasBeenSet() const { return m_indexFieldTypeHasBeenSet; }
82 inline void SetIndexFieldType(IndexFieldType value) { m_indexFieldTypeHasBeenSet = true; m_indexFieldType = value; }
83 inline IndexField& WithIndexFieldType(IndexFieldType value) { SetIndexFieldType(value); return *this;}
85
87
88 inline const IntOptions& GetIntOptions() const { return m_intOptions; }
89 inline bool IntOptionsHasBeenSet() const { return m_intOptionsHasBeenSet; }
90 template<typename IntOptionsT = IntOptions>
91 void SetIntOptions(IntOptionsT&& value) { m_intOptionsHasBeenSet = true; m_intOptions = std::forward<IntOptionsT>(value); }
92 template<typename IntOptionsT = IntOptions>
93 IndexField& WithIntOptions(IntOptionsT&& value) { SetIntOptions(std::forward<IntOptionsT>(value)); return *this;}
95
97
98 inline const DoubleOptions& GetDoubleOptions() const { return m_doubleOptions; }
99 inline bool DoubleOptionsHasBeenSet() const { return m_doubleOptionsHasBeenSet; }
100 template<typename DoubleOptionsT = DoubleOptions>
101 void SetDoubleOptions(DoubleOptionsT&& value) { m_doubleOptionsHasBeenSet = true; m_doubleOptions = std::forward<DoubleOptionsT>(value); }
102 template<typename DoubleOptionsT = DoubleOptions>
103 IndexField& WithDoubleOptions(DoubleOptionsT&& value) { SetDoubleOptions(std::forward<DoubleOptionsT>(value)); return *this;}
105
107
108 inline const LiteralOptions& GetLiteralOptions() const { return m_literalOptions; }
109 inline bool LiteralOptionsHasBeenSet() const { return m_literalOptionsHasBeenSet; }
110 template<typename LiteralOptionsT = LiteralOptions>
111 void SetLiteralOptions(LiteralOptionsT&& value) { m_literalOptionsHasBeenSet = true; m_literalOptions = std::forward<LiteralOptionsT>(value); }
112 template<typename LiteralOptionsT = LiteralOptions>
113 IndexField& WithLiteralOptions(LiteralOptionsT&& value) { SetLiteralOptions(std::forward<LiteralOptionsT>(value)); return *this;}
115
117
118 inline const TextOptions& GetTextOptions() const { return m_textOptions; }
119 inline bool TextOptionsHasBeenSet() const { return m_textOptionsHasBeenSet; }
120 template<typename TextOptionsT = TextOptions>
121 void SetTextOptions(TextOptionsT&& value) { m_textOptionsHasBeenSet = true; m_textOptions = std::forward<TextOptionsT>(value); }
122 template<typename TextOptionsT = TextOptions>
123 IndexField& WithTextOptions(TextOptionsT&& value) { SetTextOptions(std::forward<TextOptionsT>(value)); return *this;}
125
127
128 inline const DateOptions& GetDateOptions() const { return m_dateOptions; }
129 inline bool DateOptionsHasBeenSet() const { return m_dateOptionsHasBeenSet; }
130 template<typename DateOptionsT = DateOptions>
131 void SetDateOptions(DateOptionsT&& value) { m_dateOptionsHasBeenSet = true; m_dateOptions = std::forward<DateOptionsT>(value); }
132 template<typename DateOptionsT = DateOptions>
133 IndexField& WithDateOptions(DateOptionsT&& value) { SetDateOptions(std::forward<DateOptionsT>(value)); return *this;}
135
137
138 inline const LatLonOptions& GetLatLonOptions() const { return m_latLonOptions; }
139 inline bool LatLonOptionsHasBeenSet() const { return m_latLonOptionsHasBeenSet; }
140 template<typename LatLonOptionsT = LatLonOptions>
141 void SetLatLonOptions(LatLonOptionsT&& value) { m_latLonOptionsHasBeenSet = true; m_latLonOptions = std::forward<LatLonOptionsT>(value); }
142 template<typename LatLonOptionsT = LatLonOptions>
143 IndexField& WithLatLonOptions(LatLonOptionsT&& value) { SetLatLonOptions(std::forward<LatLonOptionsT>(value)); return *this;}
145
147
148 inline const IntArrayOptions& GetIntArrayOptions() const { return m_intArrayOptions; }
149 inline bool IntArrayOptionsHasBeenSet() const { return m_intArrayOptionsHasBeenSet; }
150 template<typename IntArrayOptionsT = IntArrayOptions>
151 void SetIntArrayOptions(IntArrayOptionsT&& value) { m_intArrayOptionsHasBeenSet = true; m_intArrayOptions = std::forward<IntArrayOptionsT>(value); }
152 template<typename IntArrayOptionsT = IntArrayOptions>
153 IndexField& WithIntArrayOptions(IntArrayOptionsT&& value) { SetIntArrayOptions(std::forward<IntArrayOptionsT>(value)); return *this;}
155
157
158 inline const DoubleArrayOptions& GetDoubleArrayOptions() const { return m_doubleArrayOptions; }
159 inline bool DoubleArrayOptionsHasBeenSet() const { return m_doubleArrayOptionsHasBeenSet; }
160 template<typename DoubleArrayOptionsT = DoubleArrayOptions>
161 void SetDoubleArrayOptions(DoubleArrayOptionsT&& value) { m_doubleArrayOptionsHasBeenSet = true; m_doubleArrayOptions = std::forward<DoubleArrayOptionsT>(value); }
162 template<typename DoubleArrayOptionsT = DoubleArrayOptions>
163 IndexField& WithDoubleArrayOptions(DoubleArrayOptionsT&& value) { SetDoubleArrayOptions(std::forward<DoubleArrayOptionsT>(value)); return *this;}
165
167
168 inline const LiteralArrayOptions& GetLiteralArrayOptions() const { return m_literalArrayOptions; }
169 inline bool LiteralArrayOptionsHasBeenSet() const { return m_literalArrayOptionsHasBeenSet; }
170 template<typename LiteralArrayOptionsT = LiteralArrayOptions>
171 void SetLiteralArrayOptions(LiteralArrayOptionsT&& value) { m_literalArrayOptionsHasBeenSet = true; m_literalArrayOptions = std::forward<LiteralArrayOptionsT>(value); }
172 template<typename LiteralArrayOptionsT = LiteralArrayOptions>
173 IndexField& WithLiteralArrayOptions(LiteralArrayOptionsT&& value) { SetLiteralArrayOptions(std::forward<LiteralArrayOptionsT>(value)); return *this;}
175
177
178 inline const TextArrayOptions& GetTextArrayOptions() const { return m_textArrayOptions; }
179 inline bool TextArrayOptionsHasBeenSet() const { return m_textArrayOptionsHasBeenSet; }
180 template<typename TextArrayOptionsT = TextArrayOptions>
181 void SetTextArrayOptions(TextArrayOptionsT&& value) { m_textArrayOptionsHasBeenSet = true; m_textArrayOptions = std::forward<TextArrayOptionsT>(value); }
182 template<typename TextArrayOptionsT = TextArrayOptions>
183 IndexField& WithTextArrayOptions(TextArrayOptionsT&& value) { SetTextArrayOptions(std::forward<TextArrayOptionsT>(value)); return *this;}
185
187
188 inline const DateArrayOptions& GetDateArrayOptions() const { return m_dateArrayOptions; }
189 inline bool DateArrayOptionsHasBeenSet() const { return m_dateArrayOptionsHasBeenSet; }
190 template<typename DateArrayOptionsT = DateArrayOptions>
191 void SetDateArrayOptions(DateArrayOptionsT&& value) { m_dateArrayOptionsHasBeenSet = true; m_dateArrayOptions = std::forward<DateArrayOptionsT>(value); }
192 template<typename DateArrayOptionsT = DateArrayOptions>
193 IndexField& WithDateArrayOptions(DateArrayOptionsT&& value) { SetDateArrayOptions(std::forward<DateArrayOptionsT>(value)); return *this;}
195 private:
196
197 Aws::String m_indexFieldName;
198 bool m_indexFieldNameHasBeenSet = false;
199
200 IndexFieldType m_indexFieldType{IndexFieldType::NOT_SET};
201 bool m_indexFieldTypeHasBeenSet = false;
202
203 IntOptions m_intOptions;
204 bool m_intOptionsHasBeenSet = false;
205
206 DoubleOptions m_doubleOptions;
207 bool m_doubleOptionsHasBeenSet = false;
208
209 LiteralOptions m_literalOptions;
210 bool m_literalOptionsHasBeenSet = false;
211
212 TextOptions m_textOptions;
213 bool m_textOptionsHasBeenSet = false;
214
215 DateOptions m_dateOptions;
216 bool m_dateOptionsHasBeenSet = false;
217
218 LatLonOptions m_latLonOptions;
219 bool m_latLonOptionsHasBeenSet = false;
220
221 IntArrayOptions m_intArrayOptions;
222 bool m_intArrayOptionsHasBeenSet = false;
223
224 DoubleArrayOptions m_doubleArrayOptions;
225 bool m_doubleArrayOptionsHasBeenSet = false;
226
227 LiteralArrayOptions m_literalArrayOptions;
228 bool m_literalArrayOptionsHasBeenSet = false;
229
230 TextArrayOptions m_textArrayOptions;
231 bool m_textArrayOptionsHasBeenSet = false;
232
233 DateArrayOptions m_dateArrayOptions;
234 bool m_dateArrayOptionsHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace CloudSearch
239} // namespace Aws
void SetIntOptions(IntOptionsT &&value)
Definition IndexField.h:91
const LiteralOptions & GetLiteralOptions() const
Definition IndexField.h:108
const DateArrayOptions & GetDateArrayOptions() const
Definition IndexField.h:188
IndexField & WithIndexFieldType(IndexFieldType value)
Definition IndexField.h:83
void SetIndexFieldName(IndexFieldNameT &&value)
Definition IndexField.h:73
IndexField & WithLatLonOptions(LatLonOptionsT &&value)
Definition IndexField.h:143
IndexField & WithDateOptions(DateOptionsT &&value)
Definition IndexField.h:133
AWS_CLOUDSEARCH_API IndexField & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIntArrayOptions(IntArrayOptionsT &&value)
Definition IndexField.h:151
const DoubleOptions & GetDoubleOptions() const
Definition IndexField.h:98
const IntOptions & GetIntOptions() const
Definition IndexField.h:88
void SetTextOptions(TextOptionsT &&value)
Definition IndexField.h:121
const TextArrayOptions & GetTextArrayOptions() const
Definition IndexField.h:178
IndexField & WithIntOptions(IntOptionsT &&value)
Definition IndexField.h:93
AWS_CLOUDSEARCH_API IndexField(const Aws::Utils::Xml::XmlNode &xmlNode)
const IntArrayOptions & GetIntArrayOptions() const
Definition IndexField.h:148
const LatLonOptions & GetLatLonOptions() const
Definition IndexField.h:138
IndexField & WithLiteralArrayOptions(LiteralArrayOptionsT &&value)
Definition IndexField.h:173
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IndexField & WithDoubleOptions(DoubleOptionsT &&value)
Definition IndexField.h:103
IndexField & WithLiteralOptions(LiteralOptionsT &&value)
Definition IndexField.h:113
void SetLatLonOptions(LatLonOptionsT &&value)
Definition IndexField.h:141
void SetTextArrayOptions(TextArrayOptionsT &&value)
Definition IndexField.h:181
const Aws::String & GetIndexFieldName() const
Definition IndexField.h:70
const TextOptions & GetTextOptions() const
Definition IndexField.h:118
void SetDoubleArrayOptions(DoubleArrayOptionsT &&value)
Definition IndexField.h:161
const DateOptions & GetDateOptions() const
Definition IndexField.h:128
IndexField & WithIntArrayOptions(IntArrayOptionsT &&value)
Definition IndexField.h:153
IndexField & WithDoubleArrayOptions(DoubleArrayOptionsT &&value)
Definition IndexField.h:163
IndexField & WithIndexFieldName(IndexFieldNameT &&value)
Definition IndexField.h:75
IndexField & WithDateArrayOptions(DateArrayOptionsT &&value)
Definition IndexField.h:193
const DoubleArrayOptions & GetDoubleArrayOptions() const
Definition IndexField.h:158
void SetDoubleOptions(DoubleOptionsT &&value)
Definition IndexField.h:101
IndexFieldType GetIndexFieldType() const
Definition IndexField.h:80
void SetLiteralArrayOptions(LiteralArrayOptionsT &&value)
Definition IndexField.h:171
const LiteralArrayOptions & GetLiteralArrayOptions() const
Definition IndexField.h:168
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API IndexField()=default
void SetDateArrayOptions(DateArrayOptionsT &&value)
Definition IndexField.h:191
IndexField & WithTextArrayOptions(TextArrayOptionsT &&value)
Definition IndexField.h:183
void SetDateOptions(DateOptionsT &&value)
Definition IndexField.h:131
IndexField & WithTextOptions(TextOptionsT &&value)
Definition IndexField.h:123
void SetLiteralOptions(LiteralOptionsT &&value)
Definition IndexField.h:111
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