AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QuickResponseSearchExpression.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wisdom/model/QuickResponseOrderField.h>
10#include <aws/wisdom/model/QuickResponseFilterField.h>
11#include <aws/wisdom/model/QuickResponseQueryField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectWisdomService
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchExpression();
38 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchExpression(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchExpression& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<QuickResponseFilterField>& GetFilters() const{ return m_filters; }
49 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
50 inline void SetFilters(const Aws::Vector<QuickResponseFilterField>& value) { m_filtersHasBeenSet = true; m_filters = value; }
51 inline void SetFilters(Aws::Vector<QuickResponseFilterField>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
54 inline QuickResponseSearchExpression& AddFilters(const QuickResponseFilterField& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
55 inline QuickResponseSearchExpression& AddFilters(QuickResponseFilterField&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
57
59
63 inline const QuickResponseOrderField& GetOrderOnField() const{ return m_orderOnField; }
64 inline bool OrderOnFieldHasBeenSet() const { return m_orderOnFieldHasBeenSet; }
65 inline void SetOrderOnField(const QuickResponseOrderField& value) { m_orderOnFieldHasBeenSet = true; m_orderOnField = value; }
66 inline void SetOrderOnField(QuickResponseOrderField&& value) { m_orderOnFieldHasBeenSet = true; m_orderOnField = std::move(value); }
70
72
75 inline const Aws::Vector<QuickResponseQueryField>& GetQueries() const{ return m_queries; }
76 inline bool QueriesHasBeenSet() const { return m_queriesHasBeenSet; }
77 inline void SetQueries(const Aws::Vector<QuickResponseQueryField>& value) { m_queriesHasBeenSet = true; m_queries = value; }
78 inline void SetQueries(Aws::Vector<QuickResponseQueryField>&& value) { m_queriesHasBeenSet = true; m_queries = std::move(value); }
81 inline QuickResponseSearchExpression& AddQueries(const QuickResponseQueryField& value) { m_queriesHasBeenSet = true; m_queries.push_back(value); return *this; }
82 inline QuickResponseSearchExpression& AddQueries(QuickResponseQueryField&& value) { m_queriesHasBeenSet = true; m_queries.push_back(std::move(value)); return *this; }
84 private:
85
87 bool m_filtersHasBeenSet = false;
88
89 QuickResponseOrderField m_orderOnField;
90 bool m_orderOnFieldHasBeenSet = false;
91
93 bool m_queriesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ConnectWisdomService
98} // namespace Aws
QuickResponseSearchExpression & WithQueries(const Aws::Vector< QuickResponseQueryField > &value)
void SetQueries(Aws::Vector< QuickResponseQueryField > &&value)
QuickResponseSearchExpression & AddQueries(QuickResponseQueryField &&value)
const Aws::Vector< QuickResponseQueryField > & GetQueries() const
QuickResponseSearchExpression & AddFilters(const QuickResponseFilterField &value)
QuickResponseSearchExpression & WithFilters(Aws::Vector< QuickResponseFilterField > &&value)
AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchExpression(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchExpression & AddFilters(QuickResponseFilterField &&value)
void SetFilters(const Aws::Vector< QuickResponseFilterField > &value)
QuickResponseSearchExpression & WithQueries(Aws::Vector< QuickResponseQueryField > &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseSearchExpression & AddQueries(const QuickResponseQueryField &value)
void SetFilters(Aws::Vector< QuickResponseFilterField > &&value)
QuickResponseSearchExpression & WithOrderOnField(const QuickResponseOrderField &value)
void SetQueries(const Aws::Vector< QuickResponseQueryField > &value)
const Aws::Vector< QuickResponseFilterField > & GetFilters() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchExpression & WithFilters(const Aws::Vector< QuickResponseFilterField > &value)
QuickResponseSearchExpression & WithOrderOnField(QuickResponseOrderField &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue