AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SearchExpression.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/Filter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
29 public:
30 AWS_QCONNECT_API SearchExpression() = default;
33 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
40 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
41 template <typename FiltersT = Aws::Vector<Filter>>
42 void SetFilters(FiltersT&& value) {
43 m_filtersHasBeenSet = true;
44 m_filters = std::forward<FiltersT>(value);
45 }
46 template <typename FiltersT = Aws::Vector<Filter>>
48 SetFilters(std::forward<FiltersT>(value));
49 return *this;
50 }
51 template <typename FiltersT = Filter>
53 m_filtersHasBeenSet = true;
54 m_filters.emplace_back(std::forward<FiltersT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Filter> m_filters;
60 bool m_filtersHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace QConnect
65} // namespace Aws
SearchExpression & AddFilters(FiltersT &&value)
const Aws::Vector< Filter > & GetFilters() const
AWS_QCONNECT_API SearchExpression(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SearchExpression & WithFilters(FiltersT &&value)
AWS_QCONNECT_API SearchExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API SearchExpression()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue