AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserData.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/UserReference.h>
9#include <aws/connect/model/RoutingProfileReference.h>
10#include <aws/connect/model/HierarchyPathReference.h>
11#include <aws/connect/model/AgentStatusReference.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/connect/model/Channel.h>
16#include <aws/connect/model/AgentContactReference.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Connect
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_CONNECT_API UserData();
43 AWS_CONNECT_API UserData(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONNECT_API UserData& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const UserReference& GetUser() const{ return m_user; }
54 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
55 inline void SetUser(const UserReference& value) { m_userHasBeenSet = true; m_user = value; }
56 inline void SetUser(UserReference&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
57 inline UserData& WithUser(const UserReference& value) { SetUser(value); return *this;}
58 inline UserData& WithUser(UserReference&& value) { SetUser(std::move(value)); return *this;}
60
62
65 inline const RoutingProfileReference& GetRoutingProfile() const{ return m_routingProfile; }
66 inline bool RoutingProfileHasBeenSet() const { return m_routingProfileHasBeenSet; }
67 inline void SetRoutingProfile(const RoutingProfileReference& value) { m_routingProfileHasBeenSet = true; m_routingProfile = value; }
68 inline void SetRoutingProfile(RoutingProfileReference&& value) { m_routingProfileHasBeenSet = true; m_routingProfile = std::move(value); }
69 inline UserData& WithRoutingProfile(const RoutingProfileReference& value) { SetRoutingProfile(value); return *this;}
70 inline UserData& WithRoutingProfile(RoutingProfileReference&& value) { SetRoutingProfile(std::move(value)); return *this;}
72
74
78 inline const HierarchyPathReference& GetHierarchyPath() const{ return m_hierarchyPath; }
79 inline bool HierarchyPathHasBeenSet() const { return m_hierarchyPathHasBeenSet; }
80 inline void SetHierarchyPath(const HierarchyPathReference& value) { m_hierarchyPathHasBeenSet = true; m_hierarchyPath = value; }
81 inline void SetHierarchyPath(HierarchyPathReference&& value) { m_hierarchyPathHasBeenSet = true; m_hierarchyPath = std::move(value); }
82 inline UserData& WithHierarchyPath(const HierarchyPathReference& value) { SetHierarchyPath(value); return *this;}
83 inline UserData& WithHierarchyPath(HierarchyPathReference&& value) { SetHierarchyPath(std::move(value)); return *this;}
85
87
92 inline const AgentStatusReference& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const AgentStatusReference& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(AgentStatusReference&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline UserData& WithStatus(const AgentStatusReference& value) { SetStatus(value); return *this;}
97 inline UserData& WithStatus(AgentStatusReference&& value) { SetStatus(std::move(value)); return *this;}
99
101
105 inline const Aws::Map<Channel, int>& GetAvailableSlotsByChannel() const{ return m_availableSlotsByChannel; }
106 inline bool AvailableSlotsByChannelHasBeenSet() const { return m_availableSlotsByChannelHasBeenSet; }
107 inline void SetAvailableSlotsByChannel(const Aws::Map<Channel, int>& value) { m_availableSlotsByChannelHasBeenSet = true; m_availableSlotsByChannel = value; }
108 inline void SetAvailableSlotsByChannel(Aws::Map<Channel, int>&& value) { m_availableSlotsByChannelHasBeenSet = true; m_availableSlotsByChannel = std::move(value); }
111 inline UserData& AddAvailableSlotsByChannel(const Channel& key, int value) { m_availableSlotsByChannelHasBeenSet = true; m_availableSlotsByChannel.emplace(key, value); return *this; }
112 inline UserData& AddAvailableSlotsByChannel(Channel&& key, int value) { m_availableSlotsByChannelHasBeenSet = true; m_availableSlotsByChannel.emplace(std::move(key), value); return *this; }
114
116
122 inline const Aws::Map<Channel, int>& GetMaxSlotsByChannel() const{ return m_maxSlotsByChannel; }
123 inline bool MaxSlotsByChannelHasBeenSet() const { return m_maxSlotsByChannelHasBeenSet; }
124 inline void SetMaxSlotsByChannel(const Aws::Map<Channel, int>& value) { m_maxSlotsByChannelHasBeenSet = true; m_maxSlotsByChannel = value; }
125 inline void SetMaxSlotsByChannel(Aws::Map<Channel, int>&& value) { m_maxSlotsByChannelHasBeenSet = true; m_maxSlotsByChannel = std::move(value); }
126 inline UserData& WithMaxSlotsByChannel(const Aws::Map<Channel, int>& value) { SetMaxSlotsByChannel(value); return *this;}
127 inline UserData& WithMaxSlotsByChannel(Aws::Map<Channel, int>&& value) { SetMaxSlotsByChannel(std::move(value)); return *this;}
128 inline UserData& AddMaxSlotsByChannel(const Channel& key, int value) { m_maxSlotsByChannelHasBeenSet = true; m_maxSlotsByChannel.emplace(key, value); return *this; }
129 inline UserData& AddMaxSlotsByChannel(Channel&& key, int value) { m_maxSlotsByChannelHasBeenSet = true; m_maxSlotsByChannel.emplace(std::move(key), value); return *this; }
131
133
137 inline const Aws::Map<Channel, int>& GetActiveSlotsByChannel() const{ return m_activeSlotsByChannel; }
138 inline bool ActiveSlotsByChannelHasBeenSet() const { return m_activeSlotsByChannelHasBeenSet; }
139 inline void SetActiveSlotsByChannel(const Aws::Map<Channel, int>& value) { m_activeSlotsByChannelHasBeenSet = true; m_activeSlotsByChannel = value; }
140 inline void SetActiveSlotsByChannel(Aws::Map<Channel, int>&& value) { m_activeSlotsByChannelHasBeenSet = true; m_activeSlotsByChannel = std::move(value); }
142 inline UserData& WithActiveSlotsByChannel(Aws::Map<Channel, int>&& value) { SetActiveSlotsByChannel(std::move(value)); return *this;}
143 inline UserData& AddActiveSlotsByChannel(const Channel& key, int value) { m_activeSlotsByChannelHasBeenSet = true; m_activeSlotsByChannel.emplace(key, value); return *this; }
144 inline UserData& AddActiveSlotsByChannel(Channel&& key, int value) { m_activeSlotsByChannelHasBeenSet = true; m_activeSlotsByChannel.emplace(std::move(key), value); return *this; }
146
148
151 inline const Aws::Vector<AgentContactReference>& GetContacts() const{ return m_contacts; }
152 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
153 inline void SetContacts(const Aws::Vector<AgentContactReference>& value) { m_contactsHasBeenSet = true; m_contacts = value; }
154 inline void SetContacts(Aws::Vector<AgentContactReference>&& value) { m_contactsHasBeenSet = true; m_contacts = std::move(value); }
155 inline UserData& WithContacts(const Aws::Vector<AgentContactReference>& value) { SetContacts(value); return *this;}
156 inline UserData& WithContacts(Aws::Vector<AgentContactReference>&& value) { SetContacts(std::move(value)); return *this;}
157 inline UserData& AddContacts(const AgentContactReference& value) { m_contactsHasBeenSet = true; m_contacts.push_back(value); return *this; }
158 inline UserData& AddContacts(AgentContactReference&& value) { m_contactsHasBeenSet = true; m_contacts.push_back(std::move(value)); return *this; }
160
162
165 inline const Aws::String& GetNextStatus() const{ return m_nextStatus; }
166 inline bool NextStatusHasBeenSet() const { return m_nextStatusHasBeenSet; }
167 inline void SetNextStatus(const Aws::String& value) { m_nextStatusHasBeenSet = true; m_nextStatus = value; }
168 inline void SetNextStatus(Aws::String&& value) { m_nextStatusHasBeenSet = true; m_nextStatus = std::move(value); }
169 inline void SetNextStatus(const char* value) { m_nextStatusHasBeenSet = true; m_nextStatus.assign(value); }
170 inline UserData& WithNextStatus(const Aws::String& value) { SetNextStatus(value); return *this;}
171 inline UserData& WithNextStatus(Aws::String&& value) { SetNextStatus(std::move(value)); return *this;}
172 inline UserData& WithNextStatus(const char* value) { SetNextStatus(value); return *this;}
174 private:
175
176 UserReference m_user;
177 bool m_userHasBeenSet = false;
178
179 RoutingProfileReference m_routingProfile;
180 bool m_routingProfileHasBeenSet = false;
181
182 HierarchyPathReference m_hierarchyPath;
183 bool m_hierarchyPathHasBeenSet = false;
184
185 AgentStatusReference m_status;
186 bool m_statusHasBeenSet = false;
187
188 Aws::Map<Channel, int> m_availableSlotsByChannel;
189 bool m_availableSlotsByChannelHasBeenSet = false;
190
191 Aws::Map<Channel, int> m_maxSlotsByChannel;
192 bool m_maxSlotsByChannelHasBeenSet = false;
193
194 Aws::Map<Channel, int> m_activeSlotsByChannel;
195 bool m_activeSlotsByChannelHasBeenSet = false;
196
198 bool m_contactsHasBeenSet = false;
199
200 Aws::String m_nextStatus;
201 bool m_nextStatusHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace Connect
206} // namespace Aws
void SetHierarchyPath(HierarchyPathReference &&value)
Definition UserData.h:81
UserData & AddActiveSlotsByChannel(const Channel &key, int value)
Definition UserData.h:143
AWS_CONNECT_API UserData(Aws::Utils::Json::JsonView jsonValue)
UserData & AddMaxSlotsByChannel(const Channel &key, int value)
Definition UserData.h:128
UserData & AddActiveSlotsByChannel(Channel &&key, int value)
Definition UserData.h:144
void SetNextStatus(const char *value)
Definition UserData.h:169
const RoutingProfileReference & GetRoutingProfile() const
Definition UserData.h:65
UserData & WithNextStatus(const char *value)
Definition UserData.h:172
UserData & WithRoutingProfile(const RoutingProfileReference &value)
Definition UserData.h:69
UserData & WithHierarchyPath(const HierarchyPathReference &value)
Definition UserData.h:82
UserData & AddContacts(AgentContactReference &&value)
Definition UserData.h:158
UserData & WithActiveSlotsByChannel(const Aws::Map< Channel, int > &value)
Definition UserData.h:141
AWS_CONNECT_API UserData()
void SetActiveSlotsByChannel(Aws::Map< Channel, int > &&value)
Definition UserData.h:140
UserData & WithNextStatus(const Aws::String &value)
Definition UserData.h:170
void SetUser(const UserReference &value)
Definition UserData.h:55
void SetNextStatus(Aws::String &&value)
Definition UserData.h:168
bool StatusHasBeenSet() const
Definition UserData.h:93
UserData & WithStatus(AgentStatusReference &&value)
Definition UserData.h:97
UserData & WithContacts(const Aws::Vector< AgentContactReference > &value)
Definition UserData.h:155
UserData & WithUser(UserReference &&value)
Definition UserData.h:58
const AgentStatusReference & GetStatus() const
Definition UserData.h:92
bool HierarchyPathHasBeenSet() const
Definition UserData.h:79
void SetActiveSlotsByChannel(const Aws::Map< Channel, int > &value)
Definition UserData.h:139
const Aws::Map< Channel, int > & GetAvailableSlotsByChannel() const
Definition UserData.h:105
void SetAvailableSlotsByChannel(Aws::Map< Channel, int > &&value)
Definition UserData.h:108
UserData & WithActiveSlotsByChannel(Aws::Map< Channel, int > &&value)
Definition UserData.h:142
void SetContacts(const Aws::Vector< AgentContactReference > &value)
Definition UserData.h:153
UserData & WithHierarchyPath(HierarchyPathReference &&value)
Definition UserData.h:83
const HierarchyPathReference & GetHierarchyPath() const
Definition UserData.h:78
const Aws::Map< Channel, int > & GetActiveSlotsByChannel() const
Definition UserData.h:137
const Aws::Map< Channel, int > & GetMaxSlotsByChannel() const
Definition UserData.h:122
UserData & WithStatus(const AgentStatusReference &value)
Definition UserData.h:96
void SetMaxSlotsByChannel(Aws::Map< Channel, int > &&value)
Definition UserData.h:125
UserData & WithAvailableSlotsByChannel(Aws::Map< Channel, int > &&value)
Definition UserData.h:110
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(AgentStatusReference &&value)
Definition UserData.h:95
void SetHierarchyPath(const HierarchyPathReference &value)
Definition UserData.h:80
bool NextStatusHasBeenSet() const
Definition UserData.h:166
void SetAvailableSlotsByChannel(const Aws::Map< Channel, int > &value)
Definition UserData.h:107
bool RoutingProfileHasBeenSet() const
Definition UserData.h:66
void SetMaxSlotsByChannel(const Aws::Map< Channel, int > &value)
Definition UserData.h:124
UserData & AddMaxSlotsByChannel(Channel &&key, int value)
Definition UserData.h:129
const Aws::Vector< AgentContactReference > & GetContacts() const
Definition UserData.h:151
UserData & AddAvailableSlotsByChannel(Channel &&key, int value)
Definition UserData.h:112
bool AvailableSlotsByChannelHasBeenSet() const
Definition UserData.h:106
UserData & WithUser(const UserReference &value)
Definition UserData.h:57
void SetRoutingProfile(RoutingProfileReference &&value)
Definition UserData.h:68
bool ActiveSlotsByChannelHasBeenSet() const
Definition UserData.h:138
const Aws::String & GetNextStatus() const
Definition UserData.h:165
UserData & WithMaxSlotsByChannel(const Aws::Map< Channel, int > &value)
Definition UserData.h:126
void SetUser(UserReference &&value)
Definition UserData.h:56
void SetRoutingProfile(const RoutingProfileReference &value)
Definition UserData.h:67
const UserReference & GetUser() const
Definition UserData.h:53
bool ContactsHasBeenSet() const
Definition UserData.h:152
void SetStatus(const AgentStatusReference &value)
Definition UserData.h:94
UserData & AddAvailableSlotsByChannel(const Channel &key, int value)
Definition UserData.h:111
UserData & WithNextStatus(Aws::String &&value)
Definition UserData.h:171
UserData & WithMaxSlotsByChannel(Aws::Map< Channel, int > &&value)
Definition UserData.h:127
UserData & WithContacts(Aws::Vector< AgentContactReference > &&value)
Definition UserData.h:156
void SetContacts(Aws::Vector< AgentContactReference > &&value)
Definition UserData.h:154
UserData & WithAvailableSlotsByChannel(const Aws::Map< Channel, int > &value)
Definition UserData.h:109
UserData & AddContacts(const AgentContactReference &value)
Definition UserData.h:157
UserData & WithRoutingProfile(RoutingProfileReference &&value)
Definition UserData.h:70
void SetNextStatus(const Aws::String &value)
Definition UserData.h:167
AWS_CONNECT_API UserData & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MaxSlotsByChannelHasBeenSet() const
Definition UserData.h:123
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue