AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
QueueSearchCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/SearchableQueueType.h>
9#include <aws/connect/model/StringCondition.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
34 public:
35 AWS_CONNECT_API QueueSearchCriteria() = default;
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<QueueSearchCriteria>& GetOrConditions() const { return m_orConditions; }
46 inline bool OrConditionsHasBeenSet() const { return m_orConditionsHasBeenSet; }
47 template <typename OrConditionsT = Aws::Vector<QueueSearchCriteria>>
48 void SetOrConditions(OrConditionsT&& value) {
49 m_orConditionsHasBeenSet = true;
50 m_orConditions = std::forward<OrConditionsT>(value);
51 }
52 template <typename OrConditionsT = Aws::Vector<QueueSearchCriteria>>
53 QueueSearchCriteria& WithOrConditions(OrConditionsT&& value) {
54 SetOrConditions(std::forward<OrConditionsT>(value));
55 return *this;
56 }
57 template <typename OrConditionsT = QueueSearchCriteria>
58 QueueSearchCriteria& AddOrConditions(OrConditionsT&& value) {
59 m_orConditionsHasBeenSet = true;
60 m_orConditions.emplace_back(std::forward<OrConditionsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<QueueSearchCriteria>& GetAndConditions() const { return m_andConditions; }
71 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
72 template <typename AndConditionsT = Aws::Vector<QueueSearchCriteria>>
73 void SetAndConditions(AndConditionsT&& value) {
74 m_andConditionsHasBeenSet = true;
75 m_andConditions = std::forward<AndConditionsT>(value);
76 }
77 template <typename AndConditionsT = Aws::Vector<QueueSearchCriteria>>
78 QueueSearchCriteria& WithAndConditions(AndConditionsT&& value) {
79 SetAndConditions(std::forward<AndConditionsT>(value));
80 return *this;
81 }
82 template <typename AndConditionsT = QueueSearchCriteria>
83 QueueSearchCriteria& AddAndConditions(AndConditionsT&& value) {
84 m_andConditionsHasBeenSet = true;
85 m_andConditions.emplace_back(std::forward<AndConditionsT>(value));
86 return *this;
87 }
89
91
97 inline const StringCondition& GetStringCondition() const { return m_stringCondition; }
98 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
99 template <typename StringConditionT = StringCondition>
100 void SetStringCondition(StringConditionT&& value) {
101 m_stringConditionHasBeenSet = true;
102 m_stringCondition = std::forward<StringConditionT>(value);
103 }
104 template <typename StringConditionT = StringCondition>
105 QueueSearchCriteria& WithStringCondition(StringConditionT&& value) {
106 SetStringCondition(std::forward<StringConditionT>(value));
107 return *this;
108 }
110
112
115 inline SearchableQueueType GetQueueTypeCondition() const { return m_queueTypeCondition; }
116 inline bool QueueTypeConditionHasBeenSet() const { return m_queueTypeConditionHasBeenSet; }
118 m_queueTypeConditionHasBeenSet = true;
119 m_queueTypeCondition = value;
120 }
123 return *this;
124 }
126 private:
128 bool m_orConditionsHasBeenSet = false;
129
130 Aws::Vector<QueueSearchCriteria> m_andConditions;
131 bool m_andConditionsHasBeenSet = false;
132
133 StringCondition m_stringCondition;
134 bool m_stringConditionHasBeenSet = false;
135
137 bool m_queueTypeConditionHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Connect
142} // namespace Aws
const Aws::Vector< QueueSearchCriteria > & GetOrConditions() const
QueueSearchCriteria & WithStringCondition(StringConditionT &&value)
void SetQueueTypeCondition(SearchableQueueType value)
const Aws::Vector< QueueSearchCriteria > & GetAndConditions() const
AWS_CONNECT_API QueueSearchCriteria()=default
QueueSearchCriteria & WithOrConditions(OrConditionsT &&value)
SearchableQueueType GetQueueTypeCondition() const
AWS_CONNECT_API QueueSearchCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const StringCondition & GetStringCondition() const
void SetOrConditions(OrConditionsT &&value)
QueueSearchCriteria & AddAndConditions(AndConditionsT &&value)
QueueSearchCriteria & WithQueueTypeCondition(SearchableQueueType value)
void SetAndConditions(AndConditionsT &&value)
AWS_CONNECT_API QueueSearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStringCondition(StringConditionT &&value)
QueueSearchCriteria & WithAndConditions(AndConditionsT &&value)
QueueSearchCriteria & AddOrConditions(OrConditionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue