AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserSearchCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connect/model/StringCondition.h>
10#include <aws/connect/model/ListCondition.h>
11#include <aws/connect/model/HierarchyGroupCondition.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 Connect
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_CONNECT_API UserSearchCriteria();
44 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::Vector<UserSearchCriteria>& GetOrConditions() const{ return m_orConditions; }
53 inline bool OrConditionsHasBeenSet() const { return m_orConditionsHasBeenSet; }
54 inline void SetOrConditions(const Aws::Vector<UserSearchCriteria>& value) { m_orConditionsHasBeenSet = true; m_orConditions = value; }
55 inline void SetOrConditions(Aws::Vector<UserSearchCriteria>&& value) { m_orConditionsHasBeenSet = true; m_orConditions = std::move(value); }
57 inline UserSearchCriteria& WithOrConditions(Aws::Vector<UserSearchCriteria>&& value) { SetOrConditions(std::move(value)); return *this;}
58 inline UserSearchCriteria& AddOrConditions(const UserSearchCriteria& value) { m_orConditionsHasBeenSet = true; m_orConditions.push_back(value); return *this; }
59 inline UserSearchCriteria& AddOrConditions(UserSearchCriteria&& value) { m_orConditionsHasBeenSet = true; m_orConditions.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::Vector<UserSearchCriteria>& GetAndConditions() const{ return m_andConditions; }
68 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
69 inline void SetAndConditions(const Aws::Vector<UserSearchCriteria>& value) { m_andConditionsHasBeenSet = true; m_andConditions = value; }
70 inline void SetAndConditions(Aws::Vector<UserSearchCriteria>&& value) { m_andConditionsHasBeenSet = true; m_andConditions = std::move(value); }
72 inline UserSearchCriteria& WithAndConditions(Aws::Vector<UserSearchCriteria>&& value) { SetAndConditions(std::move(value)); return *this;}
73 inline UserSearchCriteria& AddAndConditions(const UserSearchCriteria& value) { m_andConditionsHasBeenSet = true; m_andConditions.push_back(value); return *this; }
74 inline UserSearchCriteria& AddAndConditions(UserSearchCriteria&& value) { m_andConditionsHasBeenSet = true; m_andConditions.push_back(std::move(value)); return *this; }
76
78
85 inline const StringCondition& GetStringCondition() const{ return m_stringCondition; }
86 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
87 inline void SetStringCondition(const StringCondition& value) { m_stringConditionHasBeenSet = true; m_stringCondition = value; }
88 inline void SetStringCondition(StringCondition&& value) { m_stringConditionHasBeenSet = true; m_stringCondition = std::move(value); }
89 inline UserSearchCriteria& WithStringCondition(const StringCondition& value) { SetStringCondition(value); return *this;}
90 inline UserSearchCriteria& WithStringCondition(StringCondition&& value) { SetStringCondition(std::move(value)); return *this;}
92
94
98 inline const ListCondition& GetListCondition() const{ return m_listCondition; }
99 inline bool ListConditionHasBeenSet() const { return m_listConditionHasBeenSet; }
100 inline void SetListCondition(const ListCondition& value) { m_listConditionHasBeenSet = true; m_listCondition = value; }
101 inline void SetListCondition(ListCondition&& value) { m_listConditionHasBeenSet = true; m_listCondition = std::move(value); }
102 inline UserSearchCriteria& WithListCondition(const ListCondition& value) { SetListCondition(value); return *this;}
103 inline UserSearchCriteria& WithListCondition(ListCondition&& value) { SetListCondition(std::move(value)); return *this;}
105
107
111 inline const HierarchyGroupCondition& GetHierarchyGroupCondition() const{ return m_hierarchyGroupCondition; }
112 inline bool HierarchyGroupConditionHasBeenSet() const { return m_hierarchyGroupConditionHasBeenSet; }
113 inline void SetHierarchyGroupCondition(const HierarchyGroupCondition& value) { m_hierarchyGroupConditionHasBeenSet = true; m_hierarchyGroupCondition = value; }
114 inline void SetHierarchyGroupCondition(HierarchyGroupCondition&& value) { m_hierarchyGroupConditionHasBeenSet = true; m_hierarchyGroupCondition = std::move(value); }
118 private:
119
120 Aws::Vector<UserSearchCriteria> m_orConditions;
121 bool m_orConditionsHasBeenSet = false;
122
123 Aws::Vector<UserSearchCriteria> m_andConditions;
124 bool m_andConditionsHasBeenSet = false;
125
126 StringCondition m_stringCondition;
127 bool m_stringConditionHasBeenSet = false;
128
129 ListCondition m_listCondition;
130 bool m_listConditionHasBeenSet = false;
131
132 HierarchyGroupCondition m_hierarchyGroupCondition;
133 bool m_hierarchyGroupConditionHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Connect
138} // namespace Aws
UserSearchCriteria & WithOrConditions(const Aws::Vector< UserSearchCriteria > &value)
UserSearchCriteria & WithListCondition(const ListCondition &value)
UserSearchCriteria & AddOrConditions(UserSearchCriteria &&value)
void SetAndConditions(const Aws::Vector< UserSearchCriteria > &value)
void SetStringCondition(const StringCondition &value)
void SetOrConditions(const Aws::Vector< UserSearchCriteria > &value)
UserSearchCriteria & WithAndConditions(Aws::Vector< UserSearchCriteria > &&value)
void SetListCondition(const ListCondition &value)
const Aws::Vector< UserSearchCriteria > & GetOrConditions() const
UserSearchCriteria & WithListCondition(ListCondition &&value)
UserSearchCriteria & WithHierarchyGroupCondition(const HierarchyGroupCondition &value)
void SetStringCondition(StringCondition &&value)
const Aws::Vector< UserSearchCriteria > & GetAndConditions() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API UserSearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
UserSearchCriteria & WithAndConditions(const Aws::Vector< UserSearchCriteria > &value)
void SetAndConditions(Aws::Vector< UserSearchCriteria > &&value)
const ListCondition & GetListCondition() const
UserSearchCriteria & WithOrConditions(Aws::Vector< UserSearchCriteria > &&value)
UserSearchCriteria & AddAndConditions(UserSearchCriteria &&value)
UserSearchCriteria & AddAndConditions(const UserSearchCriteria &value)
UserSearchCriteria & WithStringCondition(const StringCondition &value)
void SetOrConditions(Aws::Vector< UserSearchCriteria > &&value)
void SetHierarchyGroupCondition(const HierarchyGroupCondition &value)
const HierarchyGroupCondition & GetHierarchyGroupCondition() const
UserSearchCriteria & WithHierarchyGroupCondition(HierarchyGroupCondition &&value)
UserSearchCriteria & WithStringCondition(StringCondition &&value)
void SetHierarchyGroupCondition(HierarchyGroupCondition &&value)
UserSearchCriteria & AddOrConditions(const UserSearchCriteria &value)
AWS_CONNECT_API UserSearchCriteria(Aws::Utils::Json::JsonView jsonValue)
void SetListCondition(ListCondition &&value)
const StringCondition & GetStringCondition() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue