AWS SDK for C++

AWS SDK for C++ Version 1.11.611

Loading...
Searching...
No Matches
SearchCriteria.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/AgentHierarchyGroups.h>
10#include <aws/connect/model/ContactAnalysis.h>
11#include <aws/connect/model/SearchableContactAttributes.h>
12#include <aws/connect/model/SearchableSegmentAttributes.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/connect/model/Channel.h>
15#include <aws/connect/model/ContactInitiationMethod.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Connect
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_CONNECT_API SearchCriteria() = default;
43 AWS_CONNECT_API SearchCriteria(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::Vector<Aws::String>& GetAgentIds() const { return m_agentIds; }
53 inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; }
54 template<typename AgentIdsT = Aws::Vector<Aws::String>>
55 void SetAgentIds(AgentIdsT&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::forward<AgentIdsT>(value); }
56 template<typename AgentIdsT = Aws::Vector<Aws::String>>
57 SearchCriteria& WithAgentIds(AgentIdsT&& value) { SetAgentIds(std::forward<AgentIdsT>(value)); return *this;}
58 template<typename AgentIdsT = Aws::String>
59 SearchCriteria& AddAgentIds(AgentIdsT&& value) { m_agentIdsHasBeenSet = true; m_agentIds.emplace_back(std::forward<AgentIdsT>(value)); return *this; }
61
63
67 inline const AgentHierarchyGroups& GetAgentHierarchyGroups() const { return m_agentHierarchyGroups; }
68 inline bool AgentHierarchyGroupsHasBeenSet() const { return m_agentHierarchyGroupsHasBeenSet; }
69 template<typename AgentHierarchyGroupsT = AgentHierarchyGroups>
70 void SetAgentHierarchyGroups(AgentHierarchyGroupsT&& value) { m_agentHierarchyGroupsHasBeenSet = true; m_agentHierarchyGroups = std::forward<AgentHierarchyGroupsT>(value); }
71 template<typename AgentHierarchyGroupsT = AgentHierarchyGroups>
72 SearchCriteria& WithAgentHierarchyGroups(AgentHierarchyGroupsT&& value) { SetAgentHierarchyGroups(std::forward<AgentHierarchyGroupsT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
80 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
81 template<typename ChannelsT = Aws::Vector<Channel>>
82 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
83 template<typename ChannelsT = Aws::Vector<Channel>>
84 SearchCriteria& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
85 inline SearchCriteria& AddChannels(Channel value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
87
89
93 inline const ContactAnalysis& GetContactAnalysis() const { return m_contactAnalysis; }
94 inline bool ContactAnalysisHasBeenSet() const { return m_contactAnalysisHasBeenSet; }
95 template<typename ContactAnalysisT = ContactAnalysis>
96 void SetContactAnalysis(ContactAnalysisT&& value) { m_contactAnalysisHasBeenSet = true; m_contactAnalysis = std::forward<ContactAnalysisT>(value); }
97 template<typename ContactAnalysisT = ContactAnalysis>
98 SearchCriteria& WithContactAnalysis(ContactAnalysisT&& value) { SetContactAnalysis(std::forward<ContactAnalysisT>(value)); return *this;}
100
102
105 inline const Aws::Vector<ContactInitiationMethod>& GetInitiationMethods() const { return m_initiationMethods; }
106 inline bool InitiationMethodsHasBeenSet() const { return m_initiationMethodsHasBeenSet; }
107 template<typename InitiationMethodsT = Aws::Vector<ContactInitiationMethod>>
108 void SetInitiationMethods(InitiationMethodsT&& value) { m_initiationMethodsHasBeenSet = true; m_initiationMethods = std::forward<InitiationMethodsT>(value); }
109 template<typename InitiationMethodsT = Aws::Vector<ContactInitiationMethod>>
110 SearchCriteria& WithInitiationMethods(InitiationMethodsT&& value) { SetInitiationMethods(std::forward<InitiationMethodsT>(value)); return *this;}
111 inline SearchCriteria& AddInitiationMethods(ContactInitiationMethod value) { m_initiationMethodsHasBeenSet = true; m_initiationMethods.push_back(value); return *this; }
113
115
118 inline const Aws::Vector<Aws::String>& GetQueueIds() const { return m_queueIds; }
119 inline bool QueueIdsHasBeenSet() const { return m_queueIdsHasBeenSet; }
120 template<typename QueueIdsT = Aws::Vector<Aws::String>>
121 void SetQueueIds(QueueIdsT&& value) { m_queueIdsHasBeenSet = true; m_queueIds = std::forward<QueueIdsT>(value); }
122 template<typename QueueIdsT = Aws::Vector<Aws::String>>
123 SearchCriteria& WithQueueIds(QueueIdsT&& value) { SetQueueIds(std::forward<QueueIdsT>(value)); return *this;}
124 template<typename QueueIdsT = Aws::String>
125 SearchCriteria& AddQueueIds(QueueIdsT&& value) { m_queueIdsHasBeenSet = true; m_queueIds.emplace_back(std::forward<QueueIdsT>(value)); return *this; }
127
129
140 inline const SearchableContactAttributes& GetSearchableContactAttributes() const { return m_searchableContactAttributes; }
141 inline bool SearchableContactAttributesHasBeenSet() const { return m_searchableContactAttributesHasBeenSet; }
142 template<typename SearchableContactAttributesT = SearchableContactAttributes>
143 void SetSearchableContactAttributes(SearchableContactAttributesT&& value) { m_searchableContactAttributesHasBeenSet = true; m_searchableContactAttributes = std::forward<SearchableContactAttributesT>(value); }
144 template<typename SearchableContactAttributesT = SearchableContactAttributes>
145 SearchCriteria& WithSearchableContactAttributes(SearchableContactAttributesT&& value) { SetSearchableContactAttributes(std::forward<SearchableContactAttributesT>(value)); return *this;}
147
149
152 inline const SearchableSegmentAttributes& GetSearchableSegmentAttributes() const { return m_searchableSegmentAttributes; }
153 inline bool SearchableSegmentAttributesHasBeenSet() const { return m_searchableSegmentAttributesHasBeenSet; }
154 template<typename SearchableSegmentAttributesT = SearchableSegmentAttributes>
155 void SetSearchableSegmentAttributes(SearchableSegmentAttributesT&& value) { m_searchableSegmentAttributesHasBeenSet = true; m_searchableSegmentAttributes = std::forward<SearchableSegmentAttributesT>(value); }
156 template<typename SearchableSegmentAttributesT = SearchableSegmentAttributes>
157 SearchCriteria& WithSearchableSegmentAttributes(SearchableSegmentAttributesT&& value) { SetSearchableSegmentAttributes(std::forward<SearchableSegmentAttributesT>(value)); return *this;}
159 private:
160
161 Aws::Vector<Aws::String> m_agentIds;
162 bool m_agentIdsHasBeenSet = false;
163
164 AgentHierarchyGroups m_agentHierarchyGroups;
165 bool m_agentHierarchyGroupsHasBeenSet = false;
166
167 Aws::Vector<Channel> m_channels;
168 bool m_channelsHasBeenSet = false;
169
170 ContactAnalysis m_contactAnalysis;
171 bool m_contactAnalysisHasBeenSet = false;
172
173 Aws::Vector<ContactInitiationMethod> m_initiationMethods;
174 bool m_initiationMethodsHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_queueIds;
177 bool m_queueIdsHasBeenSet = false;
178
179 SearchableContactAttributes m_searchableContactAttributes;
180 bool m_searchableContactAttributesHasBeenSet = false;
181
182 SearchableSegmentAttributes m_searchableSegmentAttributes;
183 bool m_searchableSegmentAttributesHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace Connect
188} // namespace Aws
SearchCriteria & WithChannels(ChannelsT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAgentIds() const
void SetQueueIds(QueueIdsT &&value)
SearchCriteria & AddQueueIds(QueueIdsT &&value)
AWS_CONNECT_API SearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchCriteria & AddAgentIds(AgentIdsT &&value)
SearchCriteria & WithContactAnalysis(ContactAnalysisT &&value)
SearchCriteria & WithInitiationMethods(InitiationMethodsT &&value)
void SetContactAnalysis(ContactAnalysisT &&value)
SearchCriteria & WithSearchableContactAttributes(SearchableContactAttributesT &&value)
const SearchableContactAttributes & GetSearchableContactAttributes() const
AWS_CONNECT_API SearchCriteria()=default
SearchCriteria & AddChannels(Channel value)
SearchCriteria & WithAgentIds(AgentIdsT &&value)
const Aws::Vector< Aws::String > & GetQueueIds() const
const SearchableSegmentAttributes & GetSearchableSegmentAttributes() const
AWS_CONNECT_API SearchCriteria(Aws::Utils::Json::JsonView jsonValue)
SearchCriteria & WithSearchableSegmentAttributes(SearchableSegmentAttributesT &&value)
void SetSearchableSegmentAttributes(SearchableSegmentAttributesT &&value)
const Aws::Vector< ContactInitiationMethod > & GetInitiationMethods() const
SearchCriteria & AddInitiationMethods(ContactInitiationMethod value)
void SetAgentHierarchyGroups(AgentHierarchyGroupsT &&value)
void SetInitiationMethods(InitiationMethodsT &&value)
void SetSearchableContactAttributes(SearchableContactAttributesT &&value)
const AgentHierarchyGroups & GetAgentHierarchyGroups() const
void SetAgentIds(AgentIdsT &&value)
const Aws::Vector< Channel > & GetChannels() const
void SetChannels(ChannelsT &&value)
const ContactAnalysis & GetContactAnalysis() const
SearchCriteria & WithQueueIds(QueueIdsT &&value)
SearchCriteria & WithAgentHierarchyGroups(AgentHierarchyGroupsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue