AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchExpression.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/model/Filter.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QCONNECT_API SearchExpression() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
46 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
47 template<typename FiltersT = Aws::Vector<Filter>>
48 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
49 template<typename FiltersT = Aws::Vector<Filter>>
50 SearchExpression& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
51 template<typename FiltersT = Filter>
52 SearchExpression& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Filter> m_filters;
57 bool m_filtersHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace QConnect
62} // 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