AWS SDK for C++

AWS SDK for C++ Version 1.11.826

Loading...
Searching...
No Matches
ContactSearchSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Channel.h>
9#include <aws/connect/model/ContactInitiationMethod.h>
10#include <aws/connect/model/ContactSearchSummaryAgentInfo.h>
11#include <aws/connect/model/ContactSearchSummaryAiAgentInfo.h>
12#include <aws/connect/model/ContactSearchSummaryQueueInfo.h>
13#include <aws/connect/model/ContactSearchSummarySegmentAttributeValue.h>
14#include <aws/connect/model/GlobalResiliencyMetadata.h>
15#include <aws/connect/model/RoutingCriteria.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Connect {
31namespace Model {
32
39 public:
40 AWS_CONNECT_API ContactSearchSummary() = default;
43 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template <typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) {
53 m_arnHasBeenSet = true;
54 m_arn = std::forward<ArnT>(value);
55 }
56 template <typename ArnT = Aws::String>
58 SetArn(std::forward<ArnT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetId() const { return m_id; }
68 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
69 template <typename IdT = Aws::String>
70 void SetId(IdT&& value) {
71 m_idHasBeenSet = true;
72 m_id = std::forward<IdT>(value);
73 }
74 template <typename IdT = Aws::String>
76 SetId(std::forward<IdT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetInitialContactId() const { return m_initialContactId; }
87 inline bool InitialContactIdHasBeenSet() const { return m_initialContactIdHasBeenSet; }
88 template <typename InitialContactIdT = Aws::String>
89 void SetInitialContactId(InitialContactIdT&& value) {
90 m_initialContactIdHasBeenSet = true;
91 m_initialContactId = std::forward<InitialContactIdT>(value);
92 }
93 template <typename InitialContactIdT = Aws::String>
94 ContactSearchSummary& WithInitialContactId(InitialContactIdT&& value) {
95 SetInitialContactId(std::forward<InitialContactIdT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetPreviousContactId() const { return m_previousContactId; }
106 inline bool PreviousContactIdHasBeenSet() const { return m_previousContactIdHasBeenSet; }
107 template <typename PreviousContactIdT = Aws::String>
108 void SetPreviousContactId(PreviousContactIdT&& value) {
109 m_previousContactIdHasBeenSet = true;
110 m_previousContactId = std::forward<PreviousContactIdT>(value);
111 }
112 template <typename PreviousContactIdT = Aws::String>
113 ContactSearchSummary& WithPreviousContactId(PreviousContactIdT&& value) {
114 SetPreviousContactId(std::forward<PreviousContactIdT>(value));
115 return *this;
116 }
118
120
123 inline ContactInitiationMethod GetInitiationMethod() const { return m_initiationMethod; }
124 inline bool InitiationMethodHasBeenSet() const { return m_initiationMethodHasBeenSet; }
126 m_initiationMethodHasBeenSet = true;
127 m_initiationMethod = value;
128 }
130 SetInitiationMethod(value);
131 return *this;
132 }
134
136
139 inline Channel GetChannel() const { return m_channel; }
140 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
141 inline void SetChannel(Channel value) {
142 m_channelHasBeenSet = true;
143 m_channel = value;
144 }
146 SetChannel(value);
147 return *this;
148 }
150
152
155 inline const ContactSearchSummaryQueueInfo& GetQueueInfo() const { return m_queueInfo; }
156 inline bool QueueInfoHasBeenSet() const { return m_queueInfoHasBeenSet; }
157 template <typename QueueInfoT = ContactSearchSummaryQueueInfo>
158 void SetQueueInfo(QueueInfoT&& value) {
159 m_queueInfoHasBeenSet = true;
160 m_queueInfo = std::forward<QueueInfoT>(value);
161 }
162 template <typename QueueInfoT = ContactSearchSummaryQueueInfo>
163 ContactSearchSummary& WithQueueInfo(QueueInfoT&& value) {
164 SetQueueInfo(std::forward<QueueInfoT>(value));
165 return *this;
166 }
168
170
173 inline const ContactSearchSummaryAgentInfo& GetAgentInfo() const { return m_agentInfo; }
174 inline bool AgentInfoHasBeenSet() const { return m_agentInfoHasBeenSet; }
175 template <typename AgentInfoT = ContactSearchSummaryAgentInfo>
176 void SetAgentInfo(AgentInfoT&& value) {
177 m_agentInfoHasBeenSet = true;
178 m_agentInfo = std::forward<AgentInfoT>(value);
179 }
180 template <typename AgentInfoT = ContactSearchSummaryAgentInfo>
181 ContactSearchSummary& WithAgentInfo(AgentInfoT&& value) {
182 SetAgentInfo(std::forward<AgentInfoT>(value));
183 return *this;
184 }
186
188
199 inline const Aws::Utils::DateTime& GetInitiationTimestamp() const { return m_initiationTimestamp; }
200 inline bool InitiationTimestampHasBeenSet() const { return m_initiationTimestampHasBeenSet; }
201 template <typename InitiationTimestampT = Aws::Utils::DateTime>
202 void SetInitiationTimestamp(InitiationTimestampT&& value) {
203 m_initiationTimestampHasBeenSet = true;
204 m_initiationTimestamp = std::forward<InitiationTimestampT>(value);
205 }
206 template <typename InitiationTimestampT = Aws::Utils::DateTime>
207 ContactSearchSummary& WithInitiationTimestamp(InitiationTimestampT&& value) {
208 SetInitiationTimestamp(std::forward<InitiationTimestampT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::Utils::DateTime& GetDisconnectTimestamp() const { return m_disconnectTimestamp; }
219 inline bool DisconnectTimestampHasBeenSet() const { return m_disconnectTimestampHasBeenSet; }
220 template <typename DisconnectTimestampT = Aws::Utils::DateTime>
221 void SetDisconnectTimestamp(DisconnectTimestampT&& value) {
222 m_disconnectTimestampHasBeenSet = true;
223 m_disconnectTimestamp = std::forward<DisconnectTimestampT>(value);
224 }
225 template <typename DisconnectTimestampT = Aws::Utils::DateTime>
226 ContactSearchSummary& WithDisconnectTimestamp(DisconnectTimestampT&& value) {
227 SetDisconnectTimestamp(std::forward<DisconnectTimestampT>(value));
228 return *this;
229 }
231
233
237 inline const Aws::Utils::DateTime& GetScheduledTimestamp() const { return m_scheduledTimestamp; }
238 inline bool ScheduledTimestampHasBeenSet() const { return m_scheduledTimestampHasBeenSet; }
239 template <typename ScheduledTimestampT = Aws::Utils::DateTime>
240 void SetScheduledTimestamp(ScheduledTimestampT&& value) {
241 m_scheduledTimestampHasBeenSet = true;
242 m_scheduledTimestamp = std::forward<ScheduledTimestampT>(value);
243 }
244 template <typename ScheduledTimestampT = Aws::Utils::DateTime>
245 ContactSearchSummary& WithScheduledTimestamp(ScheduledTimestampT&& value) {
246 SetScheduledTimestamp(std::forward<ScheduledTimestampT>(value));
247 return *this;
248 }
250
252
256 return m_segmentAttributes;
257 }
258 inline bool SegmentAttributesHasBeenSet() const { return m_segmentAttributesHasBeenSet; }
259 template <typename SegmentAttributesT = Aws::Map<Aws::String, ContactSearchSummarySegmentAttributeValue>>
260 void SetSegmentAttributes(SegmentAttributesT&& value) {
261 m_segmentAttributesHasBeenSet = true;
262 m_segmentAttributes = std::forward<SegmentAttributesT>(value);
263 }
264 template <typename SegmentAttributesT = Aws::Map<Aws::String, ContactSearchSummarySegmentAttributeValue>>
265 ContactSearchSummary& WithSegmentAttributes(SegmentAttributesT&& value) {
266 SetSegmentAttributes(std::forward<SegmentAttributesT>(value));
267 return *this;
268 }
269 template <typename SegmentAttributesKeyT = Aws::String, typename SegmentAttributesValueT = ContactSearchSummarySegmentAttributeValue>
270 ContactSearchSummary& AddSegmentAttributes(SegmentAttributesKeyT&& key, SegmentAttributesValueT&& value) {
271 m_segmentAttributesHasBeenSet = true;
272 m_segmentAttributes.emplace(std::forward<SegmentAttributesKeyT>(key), std::forward<SegmentAttributesValueT>(value));
273 return *this;
274 }
276
278
281 inline const Aws::String& GetName() const { return m_name; }
282 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
283 template <typename NameT = Aws::String>
284 void SetName(NameT&& value) {
285 m_nameHasBeenSet = true;
286 m_name = std::forward<NameT>(value);
287 }
288 template <typename NameT = Aws::String>
290 SetName(std::forward<NameT>(value));
291 return *this;
292 }
294
296
297 inline const RoutingCriteria& GetRoutingCriteria() const { return m_routingCriteria; }
298 inline bool RoutingCriteriaHasBeenSet() const { return m_routingCriteriaHasBeenSet; }
299 template <typename RoutingCriteriaT = RoutingCriteria>
300 void SetRoutingCriteria(RoutingCriteriaT&& value) {
301 m_routingCriteriaHasBeenSet = true;
302 m_routingCriteria = std::forward<RoutingCriteriaT>(value);
303 }
304 template <typename RoutingCriteriaT = RoutingCriteria>
305 ContactSearchSummary& WithRoutingCriteria(RoutingCriteriaT&& value) {
306 SetRoutingCriteria(std::forward<RoutingCriteriaT>(value));
307 return *this;
308 }
310
312
316 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
317 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
318 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
319 void SetTags(TagsT&& value) {
320 m_tagsHasBeenSet = true;
321 m_tags = std::forward<TagsT>(value);
322 }
323 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
325 SetTags(std::forward<TagsT>(value));
326 return *this;
327 }
328 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
329 ContactSearchSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
330 m_tagsHasBeenSet = true;
331 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
332 return *this;
333 }
335
337
340 inline const GlobalResiliencyMetadata& GetGlobalResiliencyMetadata() const { return m_globalResiliencyMetadata; }
341 inline bool GlobalResiliencyMetadataHasBeenSet() const { return m_globalResiliencyMetadataHasBeenSet; }
342 template <typename GlobalResiliencyMetadataT = GlobalResiliencyMetadata>
343 void SetGlobalResiliencyMetadata(GlobalResiliencyMetadataT&& value) {
344 m_globalResiliencyMetadataHasBeenSet = true;
345 m_globalResiliencyMetadata = std::forward<GlobalResiliencyMetadataT>(value);
346 }
347 template <typename GlobalResiliencyMetadataT = GlobalResiliencyMetadata>
348 ContactSearchSummary& WithGlobalResiliencyMetadata(GlobalResiliencyMetadataT&& value) {
349 SetGlobalResiliencyMetadata(std::forward<GlobalResiliencyMetadataT>(value));
350 return *this;
351 }
353
355
358 inline const Aws::Vector<ContactSearchSummaryAiAgentInfo>& GetAiAgentInfo() const { return m_aiAgentInfo; }
359 inline bool AiAgentInfoHasBeenSet() const { return m_aiAgentInfoHasBeenSet; }
360 template <typename AiAgentInfoT = Aws::Vector<ContactSearchSummaryAiAgentInfo>>
361 void SetAiAgentInfo(AiAgentInfoT&& value) {
362 m_aiAgentInfoHasBeenSet = true;
363 m_aiAgentInfo = std::forward<AiAgentInfoT>(value);
364 }
365 template <typename AiAgentInfoT = Aws::Vector<ContactSearchSummaryAiAgentInfo>>
366 ContactSearchSummary& WithAiAgentInfo(AiAgentInfoT&& value) {
367 SetAiAgentInfo(std::forward<AiAgentInfoT>(value));
368 return *this;
369 }
370 template <typename AiAgentInfoT = ContactSearchSummaryAiAgentInfo>
371 ContactSearchSummary& AddAiAgentInfo(AiAgentInfoT&& value) {
372 m_aiAgentInfoHasBeenSet = true;
373 m_aiAgentInfo.emplace_back(std::forward<AiAgentInfoT>(value));
374 return *this;
375 }
377 private:
378 Aws::String m_arn;
379
380 Aws::String m_id;
381
382 Aws::String m_initialContactId;
383
384 Aws::String m_previousContactId;
385
387
388 Channel m_channel{Channel::NOT_SET};
389
390 ContactSearchSummaryQueueInfo m_queueInfo;
391
392 ContactSearchSummaryAgentInfo m_agentInfo;
393
394 Aws::Utils::DateTime m_initiationTimestamp{};
395
396 Aws::Utils::DateTime m_disconnectTimestamp{};
397
398 Aws::Utils::DateTime m_scheduledTimestamp{};
399
401
402 Aws::String m_name;
403
404 RoutingCriteria m_routingCriteria;
405
407
408 GlobalResiliencyMetadata m_globalResiliencyMetadata;
409
411 bool m_arnHasBeenSet = false;
412 bool m_idHasBeenSet = false;
413 bool m_initialContactIdHasBeenSet = false;
414 bool m_previousContactIdHasBeenSet = false;
415 bool m_initiationMethodHasBeenSet = false;
416 bool m_channelHasBeenSet = false;
417 bool m_queueInfoHasBeenSet = false;
418 bool m_agentInfoHasBeenSet = false;
419 bool m_initiationTimestampHasBeenSet = false;
420 bool m_disconnectTimestampHasBeenSet = false;
421 bool m_scheduledTimestampHasBeenSet = false;
422 bool m_segmentAttributesHasBeenSet = false;
423 bool m_nameHasBeenSet = false;
424 bool m_routingCriteriaHasBeenSet = false;
425 bool m_tagsHasBeenSet = false;
426 bool m_globalResiliencyMetadataHasBeenSet = false;
427 bool m_aiAgentInfoHasBeenSet = false;
428};
429
430} // namespace Model
431} // namespace Connect
432} // namespace Aws
ContactSearchSummary & WithAiAgentInfo(AiAgentInfoT &&value)
const Aws::Utils::DateTime & GetDisconnectTimestamp() const
void SetInitiationTimestamp(InitiationTimestampT &&value)
void SetScheduledTimestamp(ScheduledTimestampT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ContactSearchSummary & WithPreviousContactId(PreviousContactIdT &&value)
const GlobalResiliencyMetadata & GetGlobalResiliencyMetadata() const
void SetInitiationMethod(ContactInitiationMethod value)
void SetPreviousContactId(PreviousContactIdT &&value)
const ContactSearchSummaryAgentInfo & GetAgentInfo() const
ContactSearchSummary & WithName(NameT &&value)
AWS_CONNECT_API ContactSearchSummary(Aws::Utils::Json::JsonView jsonValue)
ContactSearchSummary & WithChannel(Channel value)
const Aws::Vector< ContactSearchSummaryAiAgentInfo > & GetAiAgentInfo() const
ContactSearchSummary & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetInitiationTimestamp() const
const Aws::String & GetInitialContactId() const
void SetGlobalResiliencyMetadata(GlobalResiliencyMetadataT &&value)
ContactSearchSummary & WithAgentInfo(AgentInfoT &&value)
ContactSearchSummary & WithInitiationTimestamp(InitiationTimestampT &&value)
ContactSearchSummary & WithGlobalResiliencyMetadata(GlobalResiliencyMetadataT &&value)
ContactSearchSummary & WithDisconnectTimestamp(DisconnectTimestampT &&value)
void SetDisconnectTimestamp(DisconnectTimestampT &&value)
ContactSearchSummary & WithScheduledTimestamp(ScheduledTimestampT &&value)
const Aws::Map< Aws::String, ContactSearchSummarySegmentAttributeValue > & GetSegmentAttributes() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContactInitiationMethod GetInitiationMethod() const
ContactSearchSummary & AddSegmentAttributes(SegmentAttributesKeyT &&key, SegmentAttributesValueT &&value)
ContactSearchSummary & WithTags(TagsT &&value)
ContactSearchSummary & WithInitiationMethod(ContactInitiationMethod value)
ContactSearchSummary & WithId(IdT &&value)
void SetSegmentAttributes(SegmentAttributesT &&value)
ContactSearchSummary & WithInitialContactId(InitialContactIdT &&value)
const ContactSearchSummaryQueueInfo & GetQueueInfo() const
const Aws::Utils::DateTime & GetScheduledTimestamp() const
ContactSearchSummary & WithSegmentAttributes(SegmentAttributesT &&value)
void SetInitialContactId(InitialContactIdT &&value)
ContactSearchSummary & WithQueueInfo(QueueInfoT &&value)
const RoutingCriteria & GetRoutingCriteria() const
ContactSearchSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECT_API ContactSearchSummary()=default
ContactSearchSummary & WithRoutingCriteria(RoutingCriteriaT &&value)
AWS_CONNECT_API ContactSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoutingCriteria(RoutingCriteriaT &&value)
ContactSearchSummary & AddAiAgentInfo(AiAgentInfoT &&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