AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ViewSearchCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/StringCondition.h>
9#include <aws/connect/model/ViewStatus.h>
10#include <aws/connect/model/ViewType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
32 public:
33 AWS_CONNECT_API ViewSearchCriteria() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<ViewSearchCriteria>& GetOrConditions() const { return m_orConditions; }
44 inline bool OrConditionsHasBeenSet() const { return m_orConditionsHasBeenSet; }
45 template <typename OrConditionsT = Aws::Vector<ViewSearchCriteria>>
46 void SetOrConditions(OrConditionsT&& value) {
47 m_orConditionsHasBeenSet = true;
48 m_orConditions = std::forward<OrConditionsT>(value);
49 }
50 template <typename OrConditionsT = Aws::Vector<ViewSearchCriteria>>
51 ViewSearchCriteria& WithOrConditions(OrConditionsT&& value) {
52 SetOrConditions(std::forward<OrConditionsT>(value));
53 return *this;
54 }
55 template <typename OrConditionsT = ViewSearchCriteria>
56 ViewSearchCriteria& AddOrConditions(OrConditionsT&& value) {
57 m_orConditionsHasBeenSet = true;
58 m_orConditions.emplace_back(std::forward<OrConditionsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<ViewSearchCriteria>& GetAndConditions() const { return m_andConditions; }
68 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
69 template <typename AndConditionsT = Aws::Vector<ViewSearchCriteria>>
70 void SetAndConditions(AndConditionsT&& value) {
71 m_andConditionsHasBeenSet = true;
72 m_andConditions = std::forward<AndConditionsT>(value);
73 }
74 template <typename AndConditionsT = Aws::Vector<ViewSearchCriteria>>
75 ViewSearchCriteria& WithAndConditions(AndConditionsT&& value) {
76 SetAndConditions(std::forward<AndConditionsT>(value));
77 return *this;
78 }
79 template <typename AndConditionsT = ViewSearchCriteria>
80 ViewSearchCriteria& AddAndConditions(AndConditionsT&& value) {
81 m_andConditionsHasBeenSet = true;
82 m_andConditions.emplace_back(std::forward<AndConditionsT>(value));
83 return *this;
84 }
86
88
89 inline const StringCondition& GetStringCondition() const { return m_stringCondition; }
90 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
91 template <typename StringConditionT = StringCondition>
92 void SetStringCondition(StringConditionT&& value) {
93 m_stringConditionHasBeenSet = true;
94 m_stringCondition = std::forward<StringConditionT>(value);
95 }
96 template <typename StringConditionT = StringCondition>
97 ViewSearchCriteria& WithStringCondition(StringConditionT&& value) {
98 SetStringCondition(std::forward<StringConditionT>(value));
99 return *this;
100 }
102
104
107 inline ViewType GetViewTypeCondition() const { return m_viewTypeCondition; }
108 inline bool ViewTypeConditionHasBeenSet() const { return m_viewTypeConditionHasBeenSet; }
109 inline void SetViewTypeCondition(ViewType value) {
110 m_viewTypeConditionHasBeenSet = true;
111 m_viewTypeCondition = value;
112 }
115 return *this;
116 }
118
120
123 inline ViewStatus GetViewStatusCondition() const { return m_viewStatusCondition; }
124 inline bool ViewStatusConditionHasBeenSet() const { return m_viewStatusConditionHasBeenSet; }
126 m_viewStatusConditionHasBeenSet = true;
127 m_viewStatusCondition = value;
128 }
131 return *this;
132 }
134 private:
135 Aws::Vector<ViewSearchCriteria> m_orConditions;
136
137 Aws::Vector<ViewSearchCriteria> m_andConditions;
138
139 StringCondition m_stringCondition;
140
141 ViewType m_viewTypeCondition{ViewType::NOT_SET};
142
143 ViewStatus m_viewStatusCondition{ViewStatus::NOT_SET};
144 bool m_orConditionsHasBeenSet = false;
145 bool m_andConditionsHasBeenSet = false;
146 bool m_stringConditionHasBeenSet = false;
147 bool m_viewTypeConditionHasBeenSet = false;
148 bool m_viewStatusConditionHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace Connect
153} // namespace Aws
void SetStringCondition(StringConditionT &&value)
const Aws::Vector< ViewSearchCriteria > & GetOrConditions() const
AWS_CONNECT_API ViewSearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
ViewSearchCriteria & AddOrConditions(OrConditionsT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ViewSearchCriteria(Aws::Utils::Json::JsonView jsonValue)
ViewSearchCriteria & WithViewTypeCondition(ViewType value)
const StringCondition & GetStringCondition() const
ViewSearchCriteria & WithAndConditions(AndConditionsT &&value)
void SetOrConditions(OrConditionsT &&value)
ViewSearchCriteria & WithStringCondition(StringConditionT &&value)
AWS_CONNECT_API ViewSearchCriteria()=default
ViewSearchCriteria & WithOrConditions(OrConditionsT &&value)
ViewSearchCriteria & AddAndConditions(AndConditionsT &&value)
ViewSearchCriteria & WithViewStatusCondition(ViewStatus value)
void SetAndConditions(AndConditionsT &&value)
const Aws::Vector< ViewSearchCriteria > & GetAndConditions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue