AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RoutingProfile.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/connect/model/AgentAvailabilityTimer.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/connect/model/MediaConcurrency.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECT_API RoutingProfile() = default;
40 AWS_CONNECT_API RoutingProfile(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
52 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
53 template<typename InstanceIdT = Aws::String>
54 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
55 template<typename InstanceIdT = Aws::String>
56 RoutingProfile& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template<typename NameT = Aws::String>
66 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 RoutingProfile& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetRoutingProfileArn() const { return m_routingProfileArn; }
76 inline bool RoutingProfileArnHasBeenSet() const { return m_routingProfileArnHasBeenSet; }
77 template<typename RoutingProfileArnT = Aws::String>
78 void SetRoutingProfileArn(RoutingProfileArnT&& value) { m_routingProfileArnHasBeenSet = true; m_routingProfileArn = std::forward<RoutingProfileArnT>(value); }
79 template<typename RoutingProfileArnT = Aws::String>
80 RoutingProfile& WithRoutingProfileArn(RoutingProfileArnT&& value) { SetRoutingProfileArn(std::forward<RoutingProfileArnT>(value)); return *this;}
82
84
87 inline const Aws::String& GetRoutingProfileId() const { return m_routingProfileId; }
88 inline bool RoutingProfileIdHasBeenSet() const { return m_routingProfileIdHasBeenSet; }
89 template<typename RoutingProfileIdT = Aws::String>
90 void SetRoutingProfileId(RoutingProfileIdT&& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = std::forward<RoutingProfileIdT>(value); }
91 template<typename RoutingProfileIdT = Aws::String>
92 RoutingProfile& WithRoutingProfileId(RoutingProfileIdT&& value) { SetRoutingProfileId(std::forward<RoutingProfileIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 RoutingProfile& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
112 inline const Aws::Vector<MediaConcurrency>& GetMediaConcurrencies() const { return m_mediaConcurrencies; }
113 inline bool MediaConcurrenciesHasBeenSet() const { return m_mediaConcurrenciesHasBeenSet; }
114 template<typename MediaConcurrenciesT = Aws::Vector<MediaConcurrency>>
115 void SetMediaConcurrencies(MediaConcurrenciesT&& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies = std::forward<MediaConcurrenciesT>(value); }
116 template<typename MediaConcurrenciesT = Aws::Vector<MediaConcurrency>>
117 RoutingProfile& WithMediaConcurrencies(MediaConcurrenciesT&& value) { SetMediaConcurrencies(std::forward<MediaConcurrenciesT>(value)); return *this;}
118 template<typename MediaConcurrenciesT = MediaConcurrency>
119 RoutingProfile& AddMediaConcurrencies(MediaConcurrenciesT&& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies.emplace_back(std::forward<MediaConcurrenciesT>(value)); return *this; }
121
123
126 inline const Aws::String& GetDefaultOutboundQueueId() const { return m_defaultOutboundQueueId; }
127 inline bool DefaultOutboundQueueIdHasBeenSet() const { return m_defaultOutboundQueueIdHasBeenSet; }
128 template<typename DefaultOutboundQueueIdT = Aws::String>
129 void SetDefaultOutboundQueueId(DefaultOutboundQueueIdT&& value) { m_defaultOutboundQueueIdHasBeenSet = true; m_defaultOutboundQueueId = std::forward<DefaultOutboundQueueIdT>(value); }
130 template<typename DefaultOutboundQueueIdT = Aws::String>
131 RoutingProfile& WithDefaultOutboundQueueId(DefaultOutboundQueueIdT&& value) { SetDefaultOutboundQueueId(std::forward<DefaultOutboundQueueIdT>(value)); return *this;}
133
135
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
143 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 RoutingProfile& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
145 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 RoutingProfile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
148 }
150
152
155 inline long long GetNumberOfAssociatedQueues() const { return m_numberOfAssociatedQueues; }
156 inline bool NumberOfAssociatedQueuesHasBeenSet() const { return m_numberOfAssociatedQueuesHasBeenSet; }
157 inline void SetNumberOfAssociatedQueues(long long value) { m_numberOfAssociatedQueuesHasBeenSet = true; m_numberOfAssociatedQueues = value; }
158 inline RoutingProfile& WithNumberOfAssociatedQueues(long long value) { SetNumberOfAssociatedQueues(value); return *this;}
160
162
165 inline long long GetNumberOfAssociatedUsers() const { return m_numberOfAssociatedUsers; }
166 inline bool NumberOfAssociatedUsersHasBeenSet() const { return m_numberOfAssociatedUsersHasBeenSet; }
167 inline void SetNumberOfAssociatedUsers(long long value) { m_numberOfAssociatedUsersHasBeenSet = true; m_numberOfAssociatedUsers = value; }
168 inline RoutingProfile& WithNumberOfAssociatedUsers(long long value) { SetNumberOfAssociatedUsers(value); return *this;}
170
172
177 inline AgentAvailabilityTimer GetAgentAvailabilityTimer() const { return m_agentAvailabilityTimer; }
178 inline bool AgentAvailabilityTimerHasBeenSet() const { return m_agentAvailabilityTimerHasBeenSet; }
179 inline void SetAgentAvailabilityTimer(AgentAvailabilityTimer value) { m_agentAvailabilityTimerHasBeenSet = true; m_agentAvailabilityTimer = value; }
182
184
187 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
188 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
189 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
190 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
191 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
192 RoutingProfile& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
194
196
199 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
200 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
201 template<typename LastModifiedRegionT = Aws::String>
202 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
203 template<typename LastModifiedRegionT = Aws::String>
204 RoutingProfile& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
206
208
211 inline bool GetIsDefault() const { return m_isDefault; }
212 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
213 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
214 inline RoutingProfile& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
216
218
221 inline const Aws::Vector<Aws::String>& GetAssociatedQueueIds() const { return m_associatedQueueIds; }
222 inline bool AssociatedQueueIdsHasBeenSet() const { return m_associatedQueueIdsHasBeenSet; }
223 template<typename AssociatedQueueIdsT = Aws::Vector<Aws::String>>
224 void SetAssociatedQueueIds(AssociatedQueueIdsT&& value) { m_associatedQueueIdsHasBeenSet = true; m_associatedQueueIds = std::forward<AssociatedQueueIdsT>(value); }
225 template<typename AssociatedQueueIdsT = Aws::Vector<Aws::String>>
226 RoutingProfile& WithAssociatedQueueIds(AssociatedQueueIdsT&& value) { SetAssociatedQueueIds(std::forward<AssociatedQueueIdsT>(value)); return *this;}
227 template<typename AssociatedQueueIdsT = Aws::String>
228 RoutingProfile& AddAssociatedQueueIds(AssociatedQueueIdsT&& value) { m_associatedQueueIdsHasBeenSet = true; m_associatedQueueIds.emplace_back(std::forward<AssociatedQueueIdsT>(value)); return *this; }
230 private:
231
232 Aws::String m_instanceId;
233 bool m_instanceIdHasBeenSet = false;
234
235 Aws::String m_name;
236 bool m_nameHasBeenSet = false;
237
238 Aws::String m_routingProfileArn;
239 bool m_routingProfileArnHasBeenSet = false;
240
241 Aws::String m_routingProfileId;
242 bool m_routingProfileIdHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 Aws::Vector<MediaConcurrency> m_mediaConcurrencies;
248 bool m_mediaConcurrenciesHasBeenSet = false;
249
250 Aws::String m_defaultOutboundQueueId;
251 bool m_defaultOutboundQueueIdHasBeenSet = false;
252
254 bool m_tagsHasBeenSet = false;
255
256 long long m_numberOfAssociatedQueues{0};
257 bool m_numberOfAssociatedQueuesHasBeenSet = false;
258
259 long long m_numberOfAssociatedUsers{0};
260 bool m_numberOfAssociatedUsersHasBeenSet = false;
261
263 bool m_agentAvailabilityTimerHasBeenSet = false;
264
265 Aws::Utils::DateTime m_lastModifiedTime{};
266 bool m_lastModifiedTimeHasBeenSet = false;
267
268 Aws::String m_lastModifiedRegion;
269 bool m_lastModifiedRegionHasBeenSet = false;
270
271 bool m_isDefault{false};
272 bool m_isDefaultHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_associatedQueueIds;
275 bool m_associatedQueueIdsHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace Connect
280} // namespace Aws
RoutingProfile & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetName() const
void SetRoutingProfileId(RoutingProfileIdT &&value)
RoutingProfile & WithTags(TagsT &&value)
RoutingProfile & WithLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::String & GetDefaultOutboundQueueId() const
RoutingProfile & WithDefaultOutboundQueueId(DefaultOutboundQueueIdT &&value)
AgentAvailabilityTimer GetAgentAvailabilityTimer() const
AWS_CONNECT_API RoutingProfile()=default
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetRoutingProfileArn() const
void SetAgentAvailabilityTimer(AgentAvailabilityTimer value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
long long GetNumberOfAssociatedQueues() const
RoutingProfile & AddAssociatedQueueIds(AssociatedQueueIdsT &&value)
const Aws::String & GetDescription() const
RoutingProfile & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RoutingProfile & WithInstanceId(InstanceIdT &&value)
const Aws::Vector< Aws::String > & GetAssociatedQueueIds() const
void SetNumberOfAssociatedUsers(long long value)
const Aws::String & GetRoutingProfileId() const
RoutingProfile & AddMediaConcurrencies(MediaConcurrenciesT &&value)
void SetRoutingProfileArn(RoutingProfileArnT &&value)
RoutingProfile & WithMediaConcurrencies(MediaConcurrenciesT &&value)
AWS_CONNECT_API RoutingProfile(Aws::Utils::Json::JsonView jsonValue)
RoutingProfile & WithRoutingProfileId(RoutingProfileIdT &&value)
const Aws::Vector< MediaConcurrency > & GetMediaConcurrencies() const
void SetDescription(DescriptionT &&value)
RoutingProfile & WithAgentAvailabilityTimer(AgentAvailabilityTimer value)
RoutingProfile & WithAssociatedQueueIds(AssociatedQueueIdsT &&value)
RoutingProfile & WithNumberOfAssociatedUsers(long long value)
RoutingProfile & WithIsDefault(bool value)
const Aws::String & GetInstanceId() const
RoutingProfile & WithRoutingProfileArn(RoutingProfileArnT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetDefaultOutboundQueueId(DefaultOutboundQueueIdT &&value)
void SetAssociatedQueueIds(AssociatedQueueIdsT &&value)
const Aws::String & GetLastModifiedRegion() const
AWS_CONNECT_API RoutingProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMediaConcurrencies(MediaConcurrenciesT &&value)
RoutingProfile & WithName(NameT &&value)
RoutingProfile & WithNumberOfAssociatedQueues(long long value)
void SetNumberOfAssociatedQueues(long long value)
RoutingProfile & WithLastModifiedTime(LastModifiedTimeT &&value)
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