AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UserT = UserReference>
56 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
57 template<typename UserT = UserReference>
58 UserData& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
60
62
65 inline const RoutingProfileReference& GetRoutingProfile() const { return m_routingProfile; }
66 inline bool RoutingProfileHasBeenSet() const { return m_routingProfileHasBeenSet; }
67 template<typename RoutingProfileT = RoutingProfileReference>
68 void SetRoutingProfile(RoutingProfileT&& value) { m_routingProfileHasBeenSet = true; m_routingProfile = std::forward<RoutingProfileT>(value); }
69 template<typename RoutingProfileT = RoutingProfileReference>
70 UserData& WithRoutingProfile(RoutingProfileT&& value) { SetRoutingProfile(std::forward<RoutingProfileT>(value)); return *this;}
72
74
78 inline const HierarchyPathReference& GetHierarchyPath() const { return m_hierarchyPath; }
79 inline bool HierarchyPathHasBeenSet() const { return m_hierarchyPathHasBeenSet; }
80 template<typename HierarchyPathT = HierarchyPathReference>
81 void SetHierarchyPath(HierarchyPathT&& value) { m_hierarchyPathHasBeenSet = true; m_hierarchyPath = std::forward<HierarchyPathT>(value); }
82 template<typename HierarchyPathT = HierarchyPathReference>
83 UserData& WithHierarchyPath(HierarchyPathT&& value) { SetHierarchyPath(std::forward<HierarchyPathT>(value)); return *this;}
85
87
92 inline const AgentStatusReference& GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 template<typename StatusT = AgentStatusReference>
95 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
96 template<typename StatusT = AgentStatusReference>
97 UserData& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(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 template<typename AvailableSlotsByChannelT = Aws::Map<Channel, int>>
108 void SetAvailableSlotsByChannel(AvailableSlotsByChannelT&& value) { m_availableSlotsByChannelHasBeenSet = true; m_availableSlotsByChannel = std::forward<AvailableSlotsByChannelT>(value); }
109 template<typename AvailableSlotsByChannelT = Aws::Map<Channel, int>>
110 UserData& WithAvailableSlotsByChannel(AvailableSlotsByChannelT&& value) { SetAvailableSlotsByChannel(std::forward<AvailableSlotsByChannelT>(value)); return *this;}
112 m_availableSlotsByChannelHasBeenSet = true; m_availableSlotsByChannel.emplace(key, value); return *this;
113 }
115
117
123 inline const Aws::Map<Channel, int>& GetMaxSlotsByChannel() const { return m_maxSlotsByChannel; }
124 inline bool MaxSlotsByChannelHasBeenSet() const { return m_maxSlotsByChannelHasBeenSet; }
125 template<typename MaxSlotsByChannelT = Aws::Map<Channel, int>>
126 void SetMaxSlotsByChannel(MaxSlotsByChannelT&& value) { m_maxSlotsByChannelHasBeenSet = true; m_maxSlotsByChannel = std::forward<MaxSlotsByChannelT>(value); }
127 template<typename MaxSlotsByChannelT = Aws::Map<Channel, int>>
128 UserData& WithMaxSlotsByChannel(MaxSlotsByChannelT&& value) { SetMaxSlotsByChannel(std::forward<MaxSlotsByChannelT>(value)); return *this;}
129 inline UserData& AddMaxSlotsByChannel(Channel key, int value) {
130 m_maxSlotsByChannelHasBeenSet = true; m_maxSlotsByChannel.emplace(key, value); return *this;
131 }
133
135
139 inline const Aws::Map<Channel, int>& GetActiveSlotsByChannel() const { return m_activeSlotsByChannel; }
140 inline bool ActiveSlotsByChannelHasBeenSet() const { return m_activeSlotsByChannelHasBeenSet; }
141 template<typename ActiveSlotsByChannelT = Aws::Map<Channel, int>>
142 void SetActiveSlotsByChannel(ActiveSlotsByChannelT&& value) { m_activeSlotsByChannelHasBeenSet = true; m_activeSlotsByChannel = std::forward<ActiveSlotsByChannelT>(value); }
143 template<typename ActiveSlotsByChannelT = Aws::Map<Channel, int>>
144 UserData& WithActiveSlotsByChannel(ActiveSlotsByChannelT&& value) { SetActiveSlotsByChannel(std::forward<ActiveSlotsByChannelT>(value)); return *this;}
145 inline UserData& AddActiveSlotsByChannel(Channel key, int value) {
146 m_activeSlotsByChannelHasBeenSet = true; m_activeSlotsByChannel.emplace(key, value); return *this;
147 }
149
151
154 inline const Aws::Vector<AgentContactReference>& GetContacts() const { return m_contacts; }
155 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
156 template<typename ContactsT = Aws::Vector<AgentContactReference>>
157 void SetContacts(ContactsT&& value) { m_contactsHasBeenSet = true; m_contacts = std::forward<ContactsT>(value); }
158 template<typename ContactsT = Aws::Vector<AgentContactReference>>
159 UserData& WithContacts(ContactsT&& value) { SetContacts(std::forward<ContactsT>(value)); return *this;}
160 template<typename ContactsT = AgentContactReference>
161 UserData& AddContacts(ContactsT&& value) { m_contactsHasBeenSet = true; m_contacts.emplace_back(std::forward<ContactsT>(value)); return *this; }
163
165
168 inline const Aws::String& GetNextStatus() const { return m_nextStatus; }
169 inline bool NextStatusHasBeenSet() const { return m_nextStatusHasBeenSet; }
170 template<typename NextStatusT = Aws::String>
171 void SetNextStatus(NextStatusT&& value) { m_nextStatusHasBeenSet = true; m_nextStatus = std::forward<NextStatusT>(value); }
172 template<typename NextStatusT = Aws::String>
173 UserData& WithNextStatus(NextStatusT&& value) { SetNextStatus(std::forward<NextStatusT>(value)); return *this;}
175 private:
176
177 UserReference m_user;
178 bool m_userHasBeenSet = false;
179
180 RoutingProfileReference m_routingProfile;
181 bool m_routingProfileHasBeenSet = false;
182
183 HierarchyPathReference m_hierarchyPath;
184 bool m_hierarchyPathHasBeenSet = false;
185
186 AgentStatusReference m_status;
187 bool m_statusHasBeenSet = false;
188
189 Aws::Map<Channel, int> m_availableSlotsByChannel;
190 bool m_availableSlotsByChannelHasBeenSet = false;
191
192 Aws::Map<Channel, int> m_maxSlotsByChannel;
193 bool m_maxSlotsByChannelHasBeenSet = false;
194
195 Aws::Map<Channel, int> m_activeSlotsByChannel;
196 bool m_activeSlotsByChannelHasBeenSet = false;
197
199 bool m_contactsHasBeenSet = false;
200
201 Aws::String m_nextStatus;
202 bool m_nextStatusHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Connect
207} // namespace Aws
UserData & WithMaxSlotsByChannel(MaxSlotsByChannelT &&value)
Definition UserData.h:128
AWS_CONNECT_API UserData(Aws::Utils::Json::JsonView jsonValue)
void SetAvailableSlotsByChannel(AvailableSlotsByChannelT &&value)
Definition UserData.h:108
const RoutingProfileReference & GetRoutingProfile() const
Definition UserData.h:65
void SetNextStatus(NextStatusT &&value)
Definition UserData.h:171
UserData & AddAvailableSlotsByChannel(Channel key, int value)
Definition UserData.h:111
void SetRoutingProfile(RoutingProfileT &&value)
Definition UserData.h:68
UserData & WithContacts(ContactsT &&value)
Definition UserData.h:159
bool StatusHasBeenSet() const
Definition UserData.h:93
void SetActiveSlotsByChannel(ActiveSlotsByChannelT &&value)
Definition UserData.h:142
const AgentStatusReference & GetStatus() const
Definition UserData.h:92
bool HierarchyPathHasBeenSet() const
Definition UserData.h:79
UserData & WithStatus(StatusT &&value)
Definition UserData.h:97
UserData & WithUser(UserT &&value)
Definition UserData.h:58
const Aws::Map< Channel, int > & GetAvailableSlotsByChannel() const
Definition UserData.h:105
void SetMaxSlotsByChannel(MaxSlotsByChannelT &&value)
Definition UserData.h:126
UserData & WithRoutingProfile(RoutingProfileT &&value)
Definition UserData.h:70
UserData & AddContacts(ContactsT &&value)
Definition UserData.h:161
const HierarchyPathReference & GetHierarchyPath() const
Definition UserData.h:78
const Aws::Map< Channel, int > & GetActiveSlotsByChannel() const
Definition UserData.h:139
void SetContacts(ContactsT &&value)
Definition UserData.h:157
UserData & WithHierarchyPath(HierarchyPathT &&value)
Definition UserData.h:83
const Aws::Map< Channel, int > & GetMaxSlotsByChannel() const
Definition UserData.h:123
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool NextStatusHasBeenSet() const
Definition UserData.h:169
void SetUser(UserT &&value)
Definition UserData.h:56
UserData & WithAvailableSlotsByChannel(AvailableSlotsByChannelT &&value)
Definition UserData.h:110
bool RoutingProfileHasBeenSet() const
Definition UserData.h:66
UserData & AddActiveSlotsByChannel(Channel key, int value)
Definition UserData.h:145
const Aws::Vector< AgentContactReference > & GetContacts() const
Definition UserData.h:154
UserData & WithNextStatus(NextStatusT &&value)
Definition UserData.h:173
bool AvailableSlotsByChannelHasBeenSet() const
Definition UserData.h:106
bool ActiveSlotsByChannelHasBeenSet() const
Definition UserData.h:140
const Aws::String & GetNextStatus() const
Definition UserData.h:168
AWS_CONNECT_API UserData()=default
UserData & WithActiveSlotsByChannel(ActiveSlotsByChannelT &&value)
Definition UserData.h:144
const UserReference & GetUser() const
Definition UserData.h:53
bool ContactsHasBeenSet() const
Definition UserData.h:155
UserData & AddMaxSlotsByChannel(Channel key, int value)
Definition UserData.h:129
void SetHierarchyPath(HierarchyPathT &&value)
Definition UserData.h:81
void SetStatus(StatusT &&value)
Definition UserData.h:95
AWS_CONNECT_API UserData & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MaxSlotsByChannelHasBeenSet() const
Definition UserData.h:124
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