AWS SDK for C++  1.9.159
AWS SDK for C++
AttributeFilter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace kendra
24 {
25 namespace Model
26 {
27 
45  {
46  public:
51 
52 
56  inline const Aws::Vector<AttributeFilter>& GetAndAllFilters() const{ return m_andAllFilters; }
57 
61  inline bool AndAllFiltersHasBeenSet() const { return m_andAllFiltersHasBeenSet; }
62 
66  inline void SetAndAllFilters(const Aws::Vector<AttributeFilter>& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters = value; }
67 
71  inline void SetAndAllFilters(Aws::Vector<AttributeFilter>&& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters = std::move(value); }
72 
76  inline AttributeFilter& WithAndAllFilters(const Aws::Vector<AttributeFilter>& value) { SetAndAllFilters(value); return *this;}
77 
81  inline AttributeFilter& WithAndAllFilters(Aws::Vector<AttributeFilter>&& value) { SetAndAllFilters(std::move(value)); return *this;}
82 
86  inline AttributeFilter& AddAndAllFilters(const AttributeFilter& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters.push_back(value); return *this; }
87 
91  inline AttributeFilter& AddAndAllFilters(AttributeFilter&& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters.push_back(std::move(value)); return *this; }
92 
93 
97  inline const Aws::Vector<AttributeFilter>& GetOrAllFilters() const{ return m_orAllFilters; }
98 
102  inline bool OrAllFiltersHasBeenSet() const { return m_orAllFiltersHasBeenSet; }
103 
107  inline void SetOrAllFilters(const Aws::Vector<AttributeFilter>& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters = value; }
108 
112  inline void SetOrAllFilters(Aws::Vector<AttributeFilter>&& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters = std::move(value); }
113 
117  inline AttributeFilter& WithOrAllFilters(const Aws::Vector<AttributeFilter>& value) { SetOrAllFilters(value); return *this;}
118 
122  inline AttributeFilter& WithOrAllFilters(Aws::Vector<AttributeFilter>&& value) { SetOrAllFilters(std::move(value)); return *this;}
123 
127  inline AttributeFilter& AddOrAllFilters(const AttributeFilter& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters.push_back(value); return *this; }
128 
132  inline AttributeFilter& AddOrAllFilters(AttributeFilter&& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters.push_back(std::move(value)); return *this; }
133 
134 
138  inline const AttributeFilter& GetNotFilter() const{ return m_notFilter[0]; }
139 
143  inline bool NotFilterHasBeenSet() const { return m_notFilterHasBeenSet; }
144 
148  inline void SetNotFilter(const AttributeFilter& value) { m_notFilterHasBeenSet = true; m_notFilter.resize(1); m_notFilter[0] = value; }
149 
153  inline void SetNotFilter(AttributeFilter&& value) { m_notFilterHasBeenSet = true; m_notFilter.resize(1); m_notFilter[0] = std::move(value); }
154 
158  inline AttributeFilter& WithNotFilter(const AttributeFilter& value) { SetNotFilter(value); return *this;}
159 
163  inline AttributeFilter& WithNotFilter(AttributeFilter&& value) { SetNotFilter(std::move(value)); return *this;}
164 
165 
169  inline const DocumentAttribute& GetEqualsTo() const{ return m_equalsTo; }
170 
174  inline bool EqualsToHasBeenSet() const { return m_equalsToHasBeenSet; }
175 
179  inline void SetEqualsTo(const DocumentAttribute& value) { m_equalsToHasBeenSet = true; m_equalsTo = value; }
180 
184  inline void SetEqualsTo(DocumentAttribute&& value) { m_equalsToHasBeenSet = true; m_equalsTo = std::move(value); }
185 
189  inline AttributeFilter& WithEqualsTo(const DocumentAttribute& value) { SetEqualsTo(value); return *this;}
190 
194  inline AttributeFilter& WithEqualsTo(DocumentAttribute&& value) { SetEqualsTo(std::move(value)); return *this;}
195 
196 
202  inline const DocumentAttribute& GetContainsAll() const{ return m_containsAll; }
203 
209  inline bool ContainsAllHasBeenSet() const { return m_containsAllHasBeenSet; }
210 
216  inline void SetContainsAll(const DocumentAttribute& value) { m_containsAllHasBeenSet = true; m_containsAll = value; }
217 
223  inline void SetContainsAll(DocumentAttribute&& value) { m_containsAllHasBeenSet = true; m_containsAll = std::move(value); }
224 
230  inline AttributeFilter& WithContainsAll(const DocumentAttribute& value) { SetContainsAll(value); return *this;}
231 
237  inline AttributeFilter& WithContainsAll(DocumentAttribute&& value) { SetContainsAll(std::move(value)); return *this;}
238 
239 
245  inline const DocumentAttribute& GetContainsAny() const{ return m_containsAny; }
246 
252  inline bool ContainsAnyHasBeenSet() const { return m_containsAnyHasBeenSet; }
253 
259  inline void SetContainsAny(const DocumentAttribute& value) { m_containsAnyHasBeenSet = true; m_containsAny = value; }
260 
266  inline void SetContainsAny(DocumentAttribute&& value) { m_containsAnyHasBeenSet = true; m_containsAny = std::move(value); }
267 
273  inline AttributeFilter& WithContainsAny(const DocumentAttribute& value) { SetContainsAny(value); return *this;}
274 
280  inline AttributeFilter& WithContainsAny(DocumentAttribute&& value) { SetContainsAny(std::move(value)); return *this;}
281 
282 
287  inline const DocumentAttribute& GetGreaterThan() const{ return m_greaterThan; }
288 
293  inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; }
294 
299  inline void SetGreaterThan(const DocumentAttribute& value) { m_greaterThanHasBeenSet = true; m_greaterThan = value; }
300 
305  inline void SetGreaterThan(DocumentAttribute&& value) { m_greaterThanHasBeenSet = true; m_greaterThan = std::move(value); }
306 
311  inline AttributeFilter& WithGreaterThan(const DocumentAttribute& value) { SetGreaterThan(value); return *this;}
312 
317  inline AttributeFilter& WithGreaterThan(DocumentAttribute&& value) { SetGreaterThan(std::move(value)); return *this;}
318 
319 
324  inline const DocumentAttribute& GetGreaterThanOrEquals() const{ return m_greaterThanOrEquals; }
325 
330  inline bool GreaterThanOrEqualsHasBeenSet() const { return m_greaterThanOrEqualsHasBeenSet; }
331 
336  inline void SetGreaterThanOrEquals(const DocumentAttribute& value) { m_greaterThanOrEqualsHasBeenSet = true; m_greaterThanOrEquals = value; }
337 
342  inline void SetGreaterThanOrEquals(DocumentAttribute&& value) { m_greaterThanOrEqualsHasBeenSet = true; m_greaterThanOrEquals = std::move(value); }
343 
348  inline AttributeFilter& WithGreaterThanOrEquals(const DocumentAttribute& value) { SetGreaterThanOrEquals(value); return *this;}
349 
354  inline AttributeFilter& WithGreaterThanOrEquals(DocumentAttribute&& value) { SetGreaterThanOrEquals(std::move(value)); return *this;}
355 
356 
361  inline const DocumentAttribute& GetLessThan() const{ return m_lessThan; }
362 
367  inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; }
368 
373  inline void SetLessThan(const DocumentAttribute& value) { m_lessThanHasBeenSet = true; m_lessThan = value; }
374 
379  inline void SetLessThan(DocumentAttribute&& value) { m_lessThanHasBeenSet = true; m_lessThan = std::move(value); }
380 
385  inline AttributeFilter& WithLessThan(const DocumentAttribute& value) { SetLessThan(value); return *this;}
386 
391  inline AttributeFilter& WithLessThan(DocumentAttribute&& value) { SetLessThan(std::move(value)); return *this;}
392 
393 
398  inline const DocumentAttribute& GetLessThanOrEquals() const{ return m_lessThanOrEquals; }
399 
404  inline bool LessThanOrEqualsHasBeenSet() const { return m_lessThanOrEqualsHasBeenSet; }
405 
410  inline void SetLessThanOrEquals(const DocumentAttribute& value) { m_lessThanOrEqualsHasBeenSet = true; m_lessThanOrEquals = value; }
411 
416  inline void SetLessThanOrEquals(DocumentAttribute&& value) { m_lessThanOrEqualsHasBeenSet = true; m_lessThanOrEquals = std::move(value); }
417 
422  inline AttributeFilter& WithLessThanOrEquals(const DocumentAttribute& value) { SetLessThanOrEquals(value); return *this;}
423 
428  inline AttributeFilter& WithLessThanOrEquals(DocumentAttribute&& value) { SetLessThanOrEquals(std::move(value)); return *this;}
429 
430  private:
431 
432  Aws::Vector<AttributeFilter> m_andAllFilters;
433  bool m_andAllFiltersHasBeenSet;
434 
435  Aws::Vector<AttributeFilter> m_orAllFilters;
436  bool m_orAllFiltersHasBeenSet;
437 
438  Aws::Vector<AttributeFilter> m_notFilter;
439  bool m_notFilterHasBeenSet;
440 
441  DocumentAttribute m_equalsTo;
442  bool m_equalsToHasBeenSet;
443 
444  DocumentAttribute m_containsAll;
445  bool m_containsAllHasBeenSet;
446 
447  DocumentAttribute m_containsAny;
448  bool m_containsAnyHasBeenSet;
449 
450  DocumentAttribute m_greaterThan;
451  bool m_greaterThanHasBeenSet;
452 
453  DocumentAttribute m_greaterThanOrEquals;
454  bool m_greaterThanOrEqualsHasBeenSet;
455 
456  DocumentAttribute m_lessThan;
457  bool m_lessThanHasBeenSet;
458 
459  DocumentAttribute m_lessThanOrEquals;
460  bool m_lessThanOrEqualsHasBeenSet;
461  };
462 
463 } // namespace Model
464 } // namespace kendra
465 } // namespace Aws
Aws::kendra::Model::AttributeFilter::WithLessThan
AttributeFilter & WithLessThan(DocumentAttribute &&value)
Definition: AttributeFilter.h:391
Aws::kendra::Model::AttributeFilter::SetEqualsTo
void SetEqualsTo(const DocumentAttribute &value)
Definition: AttributeFilter.h:179
Aws::kendra::Model::AttributeFilter::WithContainsAny
AttributeFilter & WithContainsAny(DocumentAttribute &&value)
Definition: AttributeFilter.h:280
Aws::kendra::Model::AttributeFilter::SetGreaterThanOrEquals
void SetGreaterThanOrEquals(DocumentAttribute &&value)
Definition: AttributeFilter.h:342
Aws::kendra::Model::AttributeFilter::GetOrAllFilters
const Aws::Vector< AttributeFilter > & GetOrAllFilters() const
Definition: AttributeFilter.h:97
Aws::kendra::Model::AttributeFilter::AttributeFilter
AttributeFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::AttributeFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::AttributeFilter::LessThanHasBeenSet
bool LessThanHasBeenSet() const
Definition: AttributeFilter.h:367
Aws::kendra::Model::AttributeFilter::GetAndAllFilters
const Aws::Vector< AttributeFilter > & GetAndAllFilters() const
Definition: AttributeFilter.h:56
Aws::kendra::Model::AttributeFilter::EqualsToHasBeenSet
bool EqualsToHasBeenSet() const
Definition: AttributeFilter.h:174
Aws::kendra::Model::AttributeFilter::WithContainsAll
AttributeFilter & WithContainsAll(DocumentAttribute &&value)
Definition: AttributeFilter.h:237
Aws::kendra::Model::AttributeFilter
Definition: AttributeFilter.h:45
Aws::kendra::Model::AttributeFilter::WithAndAllFilters
AttributeFilter & WithAndAllFilters(Aws::Vector< AttributeFilter > &&value)
Definition: AttributeFilter.h:81
Aws::kendra::Model::AttributeFilter::SetOrAllFilters
void SetOrAllFilters(Aws::Vector< AttributeFilter > &&value)
Definition: AttributeFilter.h:112
Aws::kendra::Model::AttributeFilter::GetGreaterThanOrEquals
const DocumentAttribute & GetGreaterThanOrEquals() const
Definition: AttributeFilter.h:324
Aws::kendra::Model::DocumentAttribute
Definition: DocumentAttribute.h:34
Aws::kendra::Model::AttributeFilter::AndAllFiltersHasBeenSet
bool AndAllFiltersHasBeenSet() const
Definition: AttributeFilter.h:61
Aws::kendra::Model::AttributeFilter::GetLessThan
const DocumentAttribute & GetLessThan() const
Definition: AttributeFilter.h:361
Aws::kendra::Model::AttributeFilter::SetLessThanOrEquals
void SetLessThanOrEquals(DocumentAttribute &&value)
Definition: AttributeFilter.h:416
Aws::kendra::Model::AttributeFilter::SetEqualsTo
void SetEqualsTo(DocumentAttribute &&value)
Definition: AttributeFilter.h:184
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::kendra::Model::AttributeFilter::SetLessThan
void SetLessThan(DocumentAttribute &&value)
Definition: AttributeFilter.h:379
Aws::kendra::Model::AttributeFilter::SetContainsAny
void SetContainsAny(const DocumentAttribute &value)
Definition: AttributeFilter.h:259
Aws::kendra::Model::AttributeFilter::SetNotFilter
void SetNotFilter(AttributeFilter &&value)
Definition: AttributeFilter.h:153
Aws::kendra::Model::AttributeFilter::WithGreaterThan
AttributeFilter & WithGreaterThan(const DocumentAttribute &value)
Definition: AttributeFilter.h:311
Aws::kendra::Model::AttributeFilter::WithNotFilter
AttributeFilter & WithNotFilter(const AttributeFilter &value)
Definition: AttributeFilter.h:158
AWSVector.h
Aws::kendra::Model::AttributeFilter::AddAndAllFilters
AttributeFilter & AddAndAllFilters(const AttributeFilter &value)
Definition: AttributeFilter.h:86
Aws::kendra::Model::AttributeFilter::SetAndAllFilters
void SetAndAllFilters(Aws::Vector< AttributeFilter > &&value)
Definition: AttributeFilter.h:71
Aws::kendra::Model::AttributeFilter::SetContainsAny
void SetContainsAny(DocumentAttribute &&value)
Definition: AttributeFilter.h:266
Aws::kendra::Model::AttributeFilter::GetEqualsTo
const DocumentAttribute & GetEqualsTo() const
Definition: AttributeFilter.h:169
Aws::kendra::Model::AttributeFilter::AddAndAllFilters
AttributeFilter & AddAndAllFilters(AttributeFilter &&value)
Definition: AttributeFilter.h:91
Aws::kendra::Model::AttributeFilter::SetNotFilter
void SetNotFilter(const AttributeFilter &value)
Definition: AttributeFilter.h:148
Aws::kendra::Model::AttributeFilter::WithNotFilter
AttributeFilter & WithNotFilter(AttributeFilter &&value)
Definition: AttributeFilter.h:163
Aws::kendra::Model::AttributeFilter::AddOrAllFilters
AttributeFilter & AddOrAllFilters(const AttributeFilter &value)
Definition: AttributeFilter.h:127
Aws::kendra::Model::AttributeFilter::GetLessThanOrEquals
const DocumentAttribute & GetLessThanOrEquals() const
Definition: AttributeFilter.h:398
AttributeFilter.h
Kendra_EXPORTS.h
Aws::kendra::Model::AttributeFilter::SetContainsAll
void SetContainsAll(DocumentAttribute &&value)
Definition: AttributeFilter.h:223
Aws::kendra::Model::AttributeFilter::WithOrAllFilters
AttributeFilter & WithOrAllFilters(const Aws::Vector< AttributeFilter > &value)
Definition: AttributeFilter.h:117
Aws::kendra::Model::AttributeFilter::SetGreaterThanOrEquals
void SetGreaterThanOrEquals(const DocumentAttribute &value)
Definition: AttributeFilter.h:336
Aws::kendra::Model::AttributeFilter::WithEqualsTo
AttributeFilter & WithEqualsTo(DocumentAttribute &&value)
Definition: AttributeFilter.h:194
DocumentAttribute.h
Aws::kendra::Model::AttributeFilter::GetNotFilter
const AttributeFilter & GetNotFilter() const
Definition: AttributeFilter.h:138
Aws::kendra::Model::AttributeFilter::ContainsAllHasBeenSet
bool ContainsAllHasBeenSet() const
Definition: AttributeFilter.h:209
Aws::kendra::Model::AttributeFilter::WithOrAllFilters
AttributeFilter & WithOrAllFilters(Aws::Vector< AttributeFilter > &&value)
Definition: AttributeFilter.h:122
Aws::kendra::Model::AttributeFilter::WithGreaterThanOrEquals
AttributeFilter & WithGreaterThanOrEquals(const DocumentAttribute &value)
Definition: AttributeFilter.h:348
Aws::kendra::Model::AttributeFilter::WithGreaterThanOrEquals
AttributeFilter & WithGreaterThanOrEquals(DocumentAttribute &&value)
Definition: AttributeFilter.h:354
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::kendra::Model::AttributeFilter::WithContainsAny
AttributeFilter & WithContainsAny(const DocumentAttribute &value)
Definition: AttributeFilter.h:273
Aws::kendra::Model::AttributeFilter::SetContainsAll
void SetContainsAll(const DocumentAttribute &value)
Definition: AttributeFilter.h:216
Aws::kendra::Model::AttributeFilter::GetGreaterThan
const DocumentAttribute & GetGreaterThan() const
Definition: AttributeFilter.h:287
Aws::kendra::Model::AttributeFilter::SetGreaterThan
void SetGreaterThan(const DocumentAttribute &value)
Definition: AttributeFilter.h:299
Aws::kendra::Model::AttributeFilter::SetLessThanOrEquals
void SetLessThanOrEquals(const DocumentAttribute &value)
Definition: AttributeFilter.h:410
Aws::kendra::Model::AttributeFilter::GetContainsAny
const DocumentAttribute & GetContainsAny() const
Definition: AttributeFilter.h:245
Aws::kendra::Model::AttributeFilter::WithLessThan
AttributeFilter & WithLessThan(const DocumentAttribute &value)
Definition: AttributeFilter.h:385
Aws::kendra::Model::AttributeFilter::WithLessThanOrEquals
AttributeFilter & WithLessThanOrEquals(DocumentAttribute &&value)
Definition: AttributeFilter.h:428
Aws::kendra::Model::AttributeFilter::WithLessThanOrEquals
AttributeFilter & WithLessThanOrEquals(const DocumentAttribute &value)
Definition: AttributeFilter.h:422
Aws::kendra::Model::AttributeFilter::WithGreaterThan
AttributeFilter & WithGreaterThan(DocumentAttribute &&value)
Definition: AttributeFilter.h:317
Aws::kendra::Model::AttributeFilter::NotFilterHasBeenSet
bool NotFilterHasBeenSet() const
Definition: AttributeFilter.h:143
Aws::kendra::Model::AttributeFilter::WithContainsAll
AttributeFilter & WithContainsAll(const DocumentAttribute &value)
Definition: AttributeFilter.h:230
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::AttributeFilter::OrAllFiltersHasBeenSet
bool OrAllFiltersHasBeenSet() const
Definition: AttributeFilter.h:102
Aws::kendra::Model::AttributeFilter::ContainsAnyHasBeenSet
bool ContainsAnyHasBeenSet() const
Definition: AttributeFilter.h:252
Aws::kendra::Model::AttributeFilter::GreaterThanOrEqualsHasBeenSet
bool GreaterThanOrEqualsHasBeenSet() const
Definition: AttributeFilter.h:330
Aws::kendra::Model::AttributeFilter::WithAndAllFilters
AttributeFilter & WithAndAllFilters(const Aws::Vector< AttributeFilter > &value)
Definition: AttributeFilter.h:76
Aws::kendra::Model::AttributeFilter::AddOrAllFilters
AttributeFilter & AddOrAllFilters(AttributeFilter &&value)
Definition: AttributeFilter.h:132
Aws::kendra::Model::AttributeFilter::SetGreaterThan
void SetGreaterThan(DocumentAttribute &&value)
Definition: AttributeFilter.h:305
Aws::kendra::Model::AttributeFilter::LessThanOrEqualsHasBeenSet
bool LessThanOrEqualsHasBeenSet() const
Definition: AttributeFilter.h:404
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::AttributeFilter::operator=
AttributeFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::AttributeFilter::AttributeFilter
AttributeFilter()
Aws::kendra::Model::AttributeFilter::GetContainsAll
const DocumentAttribute & GetContainsAll() const
Definition: AttributeFilter.h:202
Aws::kendra::Model::AttributeFilter::GreaterThanHasBeenSet
bool GreaterThanHasBeenSet() const
Definition: AttributeFilter.h:293
Aws::kendra::Model::AttributeFilter::WithEqualsTo
AttributeFilter & WithEqualsTo(const DocumentAttribute &value)
Definition: AttributeFilter.h:189
Aws::kendra::Model::AttributeFilter::SetLessThan
void SetLessThan(const DocumentAttribute &value)
Definition: AttributeFilter.h:373
Aws::kendra::Model::AttributeFilter::SetOrAllFilters
void SetOrAllFilters(const Aws::Vector< AttributeFilter > &value)
Definition: AttributeFilter.h:107
Aws::kendra::Model::AttributeFilter::SetAndAllFilters
void SetAndAllFilters(const Aws::Vector< AttributeFilter > &value)
Definition: AttributeFilter.h:66