AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Contact.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/ContactInitiationMethod.h>
10#include <aws/connect/model/Channel.h>
11#include <aws/connect/model/QueueInfo.h>
12#include <aws/connect/model/AgentInfo.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/connect/model/WisdomInfo.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/connect/model/RoutingCriteria.h>
17#include <aws/connect/model/Customer.h>
18#include <aws/connect/model/Campaign.h>
19#include <aws/connect/model/AnsweringMachineDetectionStatus.h>
20#include <aws/connect/model/CustomerVoiceActivity.h>
21#include <aws/connect/model/QualityMetrics.h>
22#include <aws/connect/model/DisconnectDetails.h>
23#include <aws/connect/model/SegmentAttributeValue.h>
24#include <utility>
25
26namespace Aws
27{
28namespace Utils
29{
30namespace Json
31{
32 class JsonValue;
33 class JsonView;
34} // namespace Json
35} // namespace Utils
36namespace Connect
37{
38namespace Model
39{
40
46 class Contact
47 {
48 public:
49 AWS_CONNECT_API Contact();
50 AWS_CONNECT_API Contact(Aws::Utils::Json::JsonView jsonValue);
51 AWS_CONNECT_API Contact& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetArn() const{ return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
62 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
64 inline Contact& WithArn(const Aws::String& value) { SetArn(value); return *this;}
65 inline Contact& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
66 inline Contact& WithArn(const char* value) { SetArn(value); return *this;}
68
70
73 inline const Aws::String& GetId() const{ return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
76 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
77 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
78 inline Contact& WithId(const Aws::String& value) { SetId(value); return *this;}
79 inline Contact& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 inline Contact& WithId(const char* value) { SetId(value); return *this;}
82
84
88 inline const Aws::String& GetInitialContactId() const{ return m_initialContactId; }
89 inline bool InitialContactIdHasBeenSet() const { return m_initialContactIdHasBeenSet; }
90 inline void SetInitialContactId(const Aws::String& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = value; }
91 inline void SetInitialContactId(Aws::String&& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = std::move(value); }
92 inline void SetInitialContactId(const char* value) { m_initialContactIdHasBeenSet = true; m_initialContactId.assign(value); }
93 inline Contact& WithInitialContactId(const Aws::String& value) { SetInitialContactId(value); return *this;}
94 inline Contact& WithInitialContactId(Aws::String&& value) { SetInitialContactId(std::move(value)); return *this;}
95 inline Contact& WithInitialContactId(const char* value) { SetInitialContactId(value); return *this;}
97
99
103 inline const Aws::String& GetPreviousContactId() const{ return m_previousContactId; }
104 inline bool PreviousContactIdHasBeenSet() const { return m_previousContactIdHasBeenSet; }
105 inline void SetPreviousContactId(const Aws::String& value) { m_previousContactIdHasBeenSet = true; m_previousContactId = value; }
106 inline void SetPreviousContactId(Aws::String&& value) { m_previousContactIdHasBeenSet = true; m_previousContactId = std::move(value); }
107 inline void SetPreviousContactId(const char* value) { m_previousContactIdHasBeenSet = true; m_previousContactId.assign(value); }
108 inline Contact& WithPreviousContactId(const Aws::String& value) { SetPreviousContactId(value); return *this;}
109 inline Contact& WithPreviousContactId(Aws::String&& value) { SetPreviousContactId(std::move(value)); return *this;}
110 inline Contact& WithPreviousContactId(const char* value) { SetPreviousContactId(value); return *this;}
112
114
117 inline const ContactInitiationMethod& GetInitiationMethod() const{ return m_initiationMethod; }
118 inline bool InitiationMethodHasBeenSet() const { return m_initiationMethodHasBeenSet; }
119 inline void SetInitiationMethod(const ContactInitiationMethod& value) { m_initiationMethodHasBeenSet = true; m_initiationMethod = value; }
120 inline void SetInitiationMethod(ContactInitiationMethod&& value) { m_initiationMethodHasBeenSet = true; m_initiationMethod = std::move(value); }
121 inline Contact& WithInitiationMethod(const ContactInitiationMethod& value) { SetInitiationMethod(value); return *this;}
122 inline Contact& WithInitiationMethod(ContactInitiationMethod&& value) { SetInitiationMethod(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetName() const{ return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
132 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
133 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
134 inline Contact& WithName(const Aws::String& value) { SetName(value); return *this;}
135 inline Contact& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
136 inline Contact& WithName(const char* value) { SetName(value); return *this;}
138
140
143 inline const Aws::String& GetDescription() const{ return m_description; }
144 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
145 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
146 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
147 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
148 inline Contact& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
149 inline Contact& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
150 inline Contact& WithDescription(const char* value) { SetDescription(value); return *this;}
152
154
157 inline const Channel& GetChannel() const{ return m_channel; }
158 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
159 inline void SetChannel(const Channel& value) { m_channelHasBeenSet = true; m_channel = value; }
160 inline void SetChannel(Channel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
161 inline Contact& WithChannel(const Channel& value) { SetChannel(value); return *this;}
162 inline Contact& WithChannel(Channel&& value) { SetChannel(std::move(value)); return *this;}
164
166
169 inline const QueueInfo& GetQueueInfo() const{ return m_queueInfo; }
170 inline bool QueueInfoHasBeenSet() const { return m_queueInfoHasBeenSet; }
171 inline void SetQueueInfo(const QueueInfo& value) { m_queueInfoHasBeenSet = true; m_queueInfo = value; }
172 inline void SetQueueInfo(QueueInfo&& value) { m_queueInfoHasBeenSet = true; m_queueInfo = std::move(value); }
173 inline Contact& WithQueueInfo(const QueueInfo& value) { SetQueueInfo(value); return *this;}
174 inline Contact& WithQueueInfo(QueueInfo&& value) { SetQueueInfo(std::move(value)); return *this;}
176
178
181 inline const AgentInfo& GetAgentInfo() const{ return m_agentInfo; }
182 inline bool AgentInfoHasBeenSet() const { return m_agentInfoHasBeenSet; }
183 inline void SetAgentInfo(const AgentInfo& value) { m_agentInfoHasBeenSet = true; m_agentInfo = value; }
184 inline void SetAgentInfo(AgentInfo&& value) { m_agentInfoHasBeenSet = true; m_agentInfo = std::move(value); }
185 inline Contact& WithAgentInfo(const AgentInfo& value) { SetAgentInfo(value); return *this;}
186 inline Contact& WithAgentInfo(AgentInfo&& value) { SetAgentInfo(std::move(value)); return *this;}
188
190
201 inline const Aws::Utils::DateTime& GetInitiationTimestamp() const{ return m_initiationTimestamp; }
202 inline bool InitiationTimestampHasBeenSet() const { return m_initiationTimestampHasBeenSet; }
203 inline void SetInitiationTimestamp(const Aws::Utils::DateTime& value) { m_initiationTimestampHasBeenSet = true; m_initiationTimestamp = value; }
204 inline void SetInitiationTimestamp(Aws::Utils::DateTime&& value) { m_initiationTimestampHasBeenSet = true; m_initiationTimestamp = std::move(value); }
205 inline Contact& WithInitiationTimestamp(const Aws::Utils::DateTime& value) { SetInitiationTimestamp(value); return *this;}
206 inline Contact& WithInitiationTimestamp(Aws::Utils::DateTime&& value) { SetInitiationTimestamp(std::move(value)); return *this;}
208
210
214 inline const Aws::Utils::DateTime& GetDisconnectTimestamp() const{ return m_disconnectTimestamp; }
215 inline bool DisconnectTimestampHasBeenSet() const { return m_disconnectTimestampHasBeenSet; }
216 inline void SetDisconnectTimestamp(const Aws::Utils::DateTime& value) { m_disconnectTimestampHasBeenSet = true; m_disconnectTimestamp = value; }
217 inline void SetDisconnectTimestamp(Aws::Utils::DateTime&& value) { m_disconnectTimestampHasBeenSet = true; m_disconnectTimestamp = std::move(value); }
218 inline Contact& WithDisconnectTimestamp(const Aws::Utils::DateTime& value) { SetDisconnectTimestamp(value); return *this;}
219 inline Contact& WithDisconnectTimestamp(Aws::Utils::DateTime&& value) { SetDisconnectTimestamp(std::move(value)); return *this;}
221
223
226 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const{ return m_lastUpdateTimestamp; }
227 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
228 inline void SetLastUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdateTimestampHasBeenSet = true; m_lastUpdateTimestamp = value; }
229 inline void SetLastUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdateTimestampHasBeenSet = true; m_lastUpdateTimestamp = std::move(value); }
230 inline Contact& WithLastUpdateTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdateTimestamp(value); return *this;}
231 inline Contact& WithLastUpdateTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdateTimestamp(std::move(value)); return *this;}
233
235
238 inline const Aws::Utils::DateTime& GetLastPausedTimestamp() const{ return m_lastPausedTimestamp; }
239 inline bool LastPausedTimestampHasBeenSet() const { return m_lastPausedTimestampHasBeenSet; }
240 inline void SetLastPausedTimestamp(const Aws::Utils::DateTime& value) { m_lastPausedTimestampHasBeenSet = true; m_lastPausedTimestamp = value; }
241 inline void SetLastPausedTimestamp(Aws::Utils::DateTime&& value) { m_lastPausedTimestampHasBeenSet = true; m_lastPausedTimestamp = std::move(value); }
242 inline Contact& WithLastPausedTimestamp(const Aws::Utils::DateTime& value) { SetLastPausedTimestamp(value); return *this;}
243 inline Contact& WithLastPausedTimestamp(Aws::Utils::DateTime&& value) { SetLastPausedTimestamp(std::move(value)); return *this;}
245
247
250 inline const Aws::Utils::DateTime& GetLastResumedTimestamp() const{ return m_lastResumedTimestamp; }
251 inline bool LastResumedTimestampHasBeenSet() const { return m_lastResumedTimestampHasBeenSet; }
252 inline void SetLastResumedTimestamp(const Aws::Utils::DateTime& value) { m_lastResumedTimestampHasBeenSet = true; m_lastResumedTimestamp = value; }
253 inline void SetLastResumedTimestamp(Aws::Utils::DateTime&& value) { m_lastResumedTimestampHasBeenSet = true; m_lastResumedTimestamp = std::move(value); }
255 inline Contact& WithLastResumedTimestamp(Aws::Utils::DateTime&& value) { SetLastResumedTimestamp(std::move(value)); return *this;}
257
259
262 inline int GetTotalPauseCount() const{ return m_totalPauseCount; }
263 inline bool TotalPauseCountHasBeenSet() const { return m_totalPauseCountHasBeenSet; }
264 inline void SetTotalPauseCount(int value) { m_totalPauseCountHasBeenSet = true; m_totalPauseCount = value; }
265 inline Contact& WithTotalPauseCount(int value) { SetTotalPauseCount(value); return *this;}
267
269
272 inline int GetTotalPauseDurationInSeconds() const{ return m_totalPauseDurationInSeconds; }
273 inline bool TotalPauseDurationInSecondsHasBeenSet() const { return m_totalPauseDurationInSecondsHasBeenSet; }
274 inline void SetTotalPauseDurationInSeconds(int value) { m_totalPauseDurationInSecondsHasBeenSet = true; m_totalPauseDurationInSeconds = value; }
277
279
283 inline const Aws::Utils::DateTime& GetScheduledTimestamp() const{ return m_scheduledTimestamp; }
284 inline bool ScheduledTimestampHasBeenSet() const { return m_scheduledTimestampHasBeenSet; }
285 inline void SetScheduledTimestamp(const Aws::Utils::DateTime& value) { m_scheduledTimestampHasBeenSet = true; m_scheduledTimestamp = value; }
286 inline void SetScheduledTimestamp(Aws::Utils::DateTime&& value) { m_scheduledTimestampHasBeenSet = true; m_scheduledTimestamp = std::move(value); }
287 inline Contact& WithScheduledTimestamp(const Aws::Utils::DateTime& value) { SetScheduledTimestamp(value); return *this;}
288 inline Contact& WithScheduledTimestamp(Aws::Utils::DateTime&& value) { SetScheduledTimestamp(std::move(value)); return *this;}
290
292
297 inline const Aws::String& GetRelatedContactId() const{ return m_relatedContactId; }
298 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
299 inline void SetRelatedContactId(const Aws::String& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = value; }
300 inline void SetRelatedContactId(Aws::String&& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = std::move(value); }
301 inline void SetRelatedContactId(const char* value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId.assign(value); }
302 inline Contact& WithRelatedContactId(const Aws::String& value) { SetRelatedContactId(value); return *this;}
303 inline Contact& WithRelatedContactId(Aws::String&& value) { SetRelatedContactId(std::move(value)); return *this;}
304 inline Contact& WithRelatedContactId(const char* value) { SetRelatedContactId(value); return *this;}
306
308
311 inline const WisdomInfo& GetWisdomInfo() const{ return m_wisdomInfo; }
312 inline bool WisdomInfoHasBeenSet() const { return m_wisdomInfoHasBeenSet; }
313 inline void SetWisdomInfo(const WisdomInfo& value) { m_wisdomInfoHasBeenSet = true; m_wisdomInfo = value; }
314 inline void SetWisdomInfo(WisdomInfo&& value) { m_wisdomInfoHasBeenSet = true; m_wisdomInfo = std::move(value); }
315 inline Contact& WithWisdomInfo(const WisdomInfo& value) { SetWisdomInfo(value); return *this;}
316 inline Contact& WithWisdomInfo(WisdomInfo&& value) { SetWisdomInfo(std::move(value)); return *this;}
318
320
326 inline int GetQueueTimeAdjustmentSeconds() const{ return m_queueTimeAdjustmentSeconds; }
327 inline bool QueueTimeAdjustmentSecondsHasBeenSet() const { return m_queueTimeAdjustmentSecondsHasBeenSet; }
328 inline void SetQueueTimeAdjustmentSeconds(int value) { m_queueTimeAdjustmentSecondsHasBeenSet = true; m_queueTimeAdjustmentSeconds = value; }
329 inline Contact& WithQueueTimeAdjustmentSeconds(int value) { SetQueueTimeAdjustmentSeconds(value); return *this;}
331
333
339 inline long long GetQueuePriority() const{ return m_queuePriority; }
340 inline bool QueuePriorityHasBeenSet() const { return m_queuePriorityHasBeenSet; }
341 inline void SetQueuePriority(long long value) { m_queuePriorityHasBeenSet = true; m_queuePriority = value; }
342 inline Contact& WithQueuePriority(long long value) { SetQueuePriority(value); return *this;}
344
346
350 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
351 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
352 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
353 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
354 inline Contact& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
355 inline Contact& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
356 inline Contact& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
357 inline Contact& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
358 inline Contact& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
359 inline Contact& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
360 inline Contact& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
361 inline Contact& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
362 inline Contact& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
364
366
369 inline const Aws::Utils::DateTime& GetConnectedToSystemTimestamp() const{ return m_connectedToSystemTimestamp; }
370 inline bool ConnectedToSystemTimestampHasBeenSet() const { return m_connectedToSystemTimestampHasBeenSet; }
371 inline void SetConnectedToSystemTimestamp(const Aws::Utils::DateTime& value) { m_connectedToSystemTimestampHasBeenSet = true; m_connectedToSystemTimestamp = value; }
372 inline void SetConnectedToSystemTimestamp(Aws::Utils::DateTime&& value) { m_connectedToSystemTimestampHasBeenSet = true; m_connectedToSystemTimestamp = std::move(value); }
376
378
381 inline const RoutingCriteria& GetRoutingCriteria() const{ return m_routingCriteria; }
382 inline bool RoutingCriteriaHasBeenSet() const { return m_routingCriteriaHasBeenSet; }
383 inline void SetRoutingCriteria(const RoutingCriteria& value) { m_routingCriteriaHasBeenSet = true; m_routingCriteria = value; }
384 inline void SetRoutingCriteria(RoutingCriteria&& value) { m_routingCriteriaHasBeenSet = true; m_routingCriteria = std::move(value); }
385 inline Contact& WithRoutingCriteria(const RoutingCriteria& value) { SetRoutingCriteria(value); return *this;}
386 inline Contact& WithRoutingCriteria(RoutingCriteria&& value) { SetRoutingCriteria(std::move(value)); return *this;}
388
390
393 inline const Customer& GetCustomer() const{ return m_customer; }
394 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
395 inline void SetCustomer(const Customer& value) { m_customerHasBeenSet = true; m_customer = value; }
396 inline void SetCustomer(Customer&& value) { m_customerHasBeenSet = true; m_customer = std::move(value); }
397 inline Contact& WithCustomer(const Customer& value) { SetCustomer(value); return *this;}
398 inline Contact& WithCustomer(Customer&& value) { SetCustomer(std::move(value)); return *this;}
400
402
403 inline const Campaign& GetCampaign() const{ return m_campaign; }
404 inline bool CampaignHasBeenSet() const { return m_campaignHasBeenSet; }
405 inline void SetCampaign(const Campaign& value) { m_campaignHasBeenSet = true; m_campaign = value; }
406 inline void SetCampaign(Campaign&& value) { m_campaignHasBeenSet = true; m_campaign = std::move(value); }
407 inline Contact& WithCampaign(const Campaign& value) { SetCampaign(value); return *this;}
408 inline Contact& WithCampaign(Campaign&& value) { SetCampaign(std::move(value)); return *this;}
410
412
418 inline const AnsweringMachineDetectionStatus& GetAnsweringMachineDetectionStatus() const{ return m_answeringMachineDetectionStatus; }
419 inline bool AnsweringMachineDetectionStatusHasBeenSet() const { return m_answeringMachineDetectionStatusHasBeenSet; }
420 inline void SetAnsweringMachineDetectionStatus(const AnsweringMachineDetectionStatus& value) { m_answeringMachineDetectionStatusHasBeenSet = true; m_answeringMachineDetectionStatus = value; }
421 inline void SetAnsweringMachineDetectionStatus(AnsweringMachineDetectionStatus&& value) { m_answeringMachineDetectionStatusHasBeenSet = true; m_answeringMachineDetectionStatus = std::move(value); }
425
427
430 inline const CustomerVoiceActivity& GetCustomerVoiceActivity() const{ return m_customerVoiceActivity; }
431 inline bool CustomerVoiceActivityHasBeenSet() const { return m_customerVoiceActivityHasBeenSet; }
432 inline void SetCustomerVoiceActivity(const CustomerVoiceActivity& value) { m_customerVoiceActivityHasBeenSet = true; m_customerVoiceActivity = value; }
433 inline void SetCustomerVoiceActivity(CustomerVoiceActivity&& value) { m_customerVoiceActivityHasBeenSet = true; m_customerVoiceActivity = std::move(value); }
435 inline Contact& WithCustomerVoiceActivity(CustomerVoiceActivity&& value) { SetCustomerVoiceActivity(std::move(value)); return *this;}
437
439
442 inline const QualityMetrics& GetQualityMetrics() const{ return m_qualityMetrics; }
443 inline bool QualityMetricsHasBeenSet() const { return m_qualityMetricsHasBeenSet; }
444 inline void SetQualityMetrics(const QualityMetrics& value) { m_qualityMetricsHasBeenSet = true; m_qualityMetrics = value; }
445 inline void SetQualityMetrics(QualityMetrics&& value) { m_qualityMetricsHasBeenSet = true; m_qualityMetrics = std::move(value); }
446 inline Contact& WithQualityMetrics(const QualityMetrics& value) { SetQualityMetrics(value); return *this;}
447 inline Contact& WithQualityMetrics(QualityMetrics&& value) { SetQualityMetrics(std::move(value)); return *this;}
449
451
454 inline const DisconnectDetails& GetDisconnectDetails() const{ return m_disconnectDetails; }
455 inline bool DisconnectDetailsHasBeenSet() const { return m_disconnectDetailsHasBeenSet; }
456 inline void SetDisconnectDetails(const DisconnectDetails& value) { m_disconnectDetailsHasBeenSet = true; m_disconnectDetails = value; }
457 inline void SetDisconnectDetails(DisconnectDetails&& value) { m_disconnectDetailsHasBeenSet = true; m_disconnectDetails = std::move(value); }
458 inline Contact& WithDisconnectDetails(const DisconnectDetails& value) { SetDisconnectDetails(value); return *this;}
459 inline Contact& WithDisconnectDetails(DisconnectDetails&& value) { SetDisconnectDetails(std::move(value)); return *this;}
461
463
470 inline const Aws::Map<Aws::String, SegmentAttributeValue>& GetSegmentAttributes() const{ return m_segmentAttributes; }
471 inline bool SegmentAttributesHasBeenSet() const { return m_segmentAttributesHasBeenSet; }
472 inline void SetSegmentAttributes(const Aws::Map<Aws::String, SegmentAttributeValue>& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes = value; }
473 inline void SetSegmentAttributes(Aws::Map<Aws::String, SegmentAttributeValue>&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes = std::move(value); }
476 inline Contact& AddSegmentAttributes(const Aws::String& key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, value); return *this; }
477 inline Contact& AddSegmentAttributes(Aws::String&& key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(std::move(key), value); return *this; }
478 inline Contact& AddSegmentAttributes(const Aws::String& key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, std::move(value)); return *this; }
479 inline Contact& AddSegmentAttributes(Aws::String&& key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(std::move(key), std::move(value)); return *this; }
480 inline Contact& AddSegmentAttributes(const char* key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, std::move(value)); return *this; }
481 inline Contact& AddSegmentAttributes(const char* key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, value); return *this; }
483 private:
484
485 Aws::String m_arn;
486 bool m_arnHasBeenSet = false;
487
488 Aws::String m_id;
489 bool m_idHasBeenSet = false;
490
491 Aws::String m_initialContactId;
492 bool m_initialContactIdHasBeenSet = false;
493
494 Aws::String m_previousContactId;
495 bool m_previousContactIdHasBeenSet = false;
496
497 ContactInitiationMethod m_initiationMethod;
498 bool m_initiationMethodHasBeenSet = false;
499
500 Aws::String m_name;
501 bool m_nameHasBeenSet = false;
502
503 Aws::String m_description;
504 bool m_descriptionHasBeenSet = false;
505
506 Channel m_channel;
507 bool m_channelHasBeenSet = false;
508
509 QueueInfo m_queueInfo;
510 bool m_queueInfoHasBeenSet = false;
511
512 AgentInfo m_agentInfo;
513 bool m_agentInfoHasBeenSet = false;
514
515 Aws::Utils::DateTime m_initiationTimestamp;
516 bool m_initiationTimestampHasBeenSet = false;
517
518 Aws::Utils::DateTime m_disconnectTimestamp;
519 bool m_disconnectTimestampHasBeenSet = false;
520
521 Aws::Utils::DateTime m_lastUpdateTimestamp;
522 bool m_lastUpdateTimestampHasBeenSet = false;
523
524 Aws::Utils::DateTime m_lastPausedTimestamp;
525 bool m_lastPausedTimestampHasBeenSet = false;
526
527 Aws::Utils::DateTime m_lastResumedTimestamp;
528 bool m_lastResumedTimestampHasBeenSet = false;
529
530 int m_totalPauseCount;
531 bool m_totalPauseCountHasBeenSet = false;
532
533 int m_totalPauseDurationInSeconds;
534 bool m_totalPauseDurationInSecondsHasBeenSet = false;
535
536 Aws::Utils::DateTime m_scheduledTimestamp;
537 bool m_scheduledTimestampHasBeenSet = false;
538
539 Aws::String m_relatedContactId;
540 bool m_relatedContactIdHasBeenSet = false;
541
542 WisdomInfo m_wisdomInfo;
543 bool m_wisdomInfoHasBeenSet = false;
544
545 int m_queueTimeAdjustmentSeconds;
546 bool m_queueTimeAdjustmentSecondsHasBeenSet = false;
547
548 long long m_queuePriority;
549 bool m_queuePriorityHasBeenSet = false;
550
552 bool m_tagsHasBeenSet = false;
553
554 Aws::Utils::DateTime m_connectedToSystemTimestamp;
555 bool m_connectedToSystemTimestampHasBeenSet = false;
556
557 RoutingCriteria m_routingCriteria;
558 bool m_routingCriteriaHasBeenSet = false;
559
560 Customer m_customer;
561 bool m_customerHasBeenSet = false;
562
563 Campaign m_campaign;
564 bool m_campaignHasBeenSet = false;
565
566 AnsweringMachineDetectionStatus m_answeringMachineDetectionStatus;
567 bool m_answeringMachineDetectionStatusHasBeenSet = false;
568
569 CustomerVoiceActivity m_customerVoiceActivity;
570 bool m_customerVoiceActivityHasBeenSet = false;
571
572 QualityMetrics m_qualityMetrics;
573 bool m_qualityMetricsHasBeenSet = false;
574
575 DisconnectDetails m_disconnectDetails;
576 bool m_disconnectDetailsHasBeenSet = false;
577
579 bool m_segmentAttributesHasBeenSet = false;
580 };
581
582} // namespace Model
583} // namespace Connect
584} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Contact.h:353
Contact & WithScheduledTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:287
Contact & WithWisdomInfo(const WisdomInfo &value)
Definition Contact.h:315
Contact & WithAnsweringMachineDetectionStatus(AnsweringMachineDetectionStatus &&value)
Definition Contact.h:423
Contact & WithRoutingCriteria(RoutingCriteria &&value)
Definition Contact.h:386
Contact & WithAnsweringMachineDetectionStatus(const AnsweringMachineDetectionStatus &value)
Definition Contact.h:422
Contact & AddTags(const char *key, const char *value)
Definition Contact.h:362
bool AnsweringMachineDetectionStatusHasBeenSet() const
Definition Contact.h:419
Contact & WithPreviousContactId(const Aws::String &value)
Definition Contact.h:108
Contact & WithQueueInfo(const QueueInfo &value)
Definition Contact.h:173
Contact & WithInitialContactId(const char *value)
Definition Contact.h:95
Contact & WithCustomerVoiceActivity(CustomerVoiceActivity &&value)
Definition Contact.h:435
void SetQueueInfo(const QueueInfo &value)
Definition Contact.h:171
Contact & WithInitiationMethod(ContactInitiationMethod &&value)
Definition Contact.h:122
void SetWisdomInfo(const WisdomInfo &value)
Definition Contact.h:313
int GetTotalPauseDurationInSeconds() const
Definition Contact.h:272
Contact & WithRelatedContactId(const Aws::String &value)
Definition Contact.h:302
const Aws::Utils::DateTime & GetLastResumedTimestamp() const
Definition Contact.h:250
const Aws::String & GetId() const
Definition Contact.h:73
void SetScheduledTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:286
Contact & WithScheduledTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:288
bool SegmentAttributesHasBeenSet() const
Definition Contact.h:471
Contact & WithCustomerVoiceActivity(const CustomerVoiceActivity &value)
Definition Contact.h:434
Contact & WithCampaign(const Campaign &value)
Definition Contact.h:407
void SetLastUpdateTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:229
Contact & WithPreviousContactId(Aws::String &&value)
Definition Contact.h:109
void SetCustomerVoiceActivity(CustomerVoiceActivity &&value)
Definition Contact.h:433
Contact & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Contact.h:354
AWS_CONNECT_API Contact(Aws::Utils::Json::JsonView jsonValue)
Contact & WithDisconnectTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:218
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Contact.h:352
Contact & WithLastPausedTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:242
void SetRelatedContactId(const char *value)
Definition Contact.h:301
void SetCustomer(Customer &&value)
Definition Contact.h:396
const Aws::Utils::DateTime & GetLastPausedTimestamp() const
Definition Contact.h:238
Contact & WithRoutingCriteria(const RoutingCriteria &value)
Definition Contact.h:385
void SetDisconnectDetails(DisconnectDetails &&value)
Definition Contact.h:457
Contact & WithCustomer(const Customer &value)
Definition Contact.h:397
bool LastUpdateTimestampHasBeenSet() const
Definition Contact.h:227
bool DescriptionHasBeenSet() const
Definition Contact.h:144
void SetName(const char *value)
Definition Contact.h:133
const Aws::String & GetRelatedContactId() const
Definition Contact.h:297
Contact & WithArn(const Aws::String &value)
Definition Contact.h:64
void SetRoutingCriteria(const RoutingCriteria &value)
Definition Contact.h:383
void SetRoutingCriteria(RoutingCriteria &&value)
Definition Contact.h:384
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Contact & AddSegmentAttributes(const char *key, SegmentAttributeValue &&value)
Definition Contact.h:480
void SetSegmentAttributes(Aws::Map< Aws::String, SegmentAttributeValue > &&value)
Definition Contact.h:473
bool AgentInfoHasBeenSet() const
Definition Contact.h:182
const Aws::Map< Aws::String, SegmentAttributeValue > & GetSegmentAttributes() const
Definition Contact.h:470
Contact & WithArn(Aws::String &&value)
Definition Contact.h:65
void SetQualityMetrics(const QualityMetrics &value)
Definition Contact.h:444
bool ConnectedToSystemTimestampHasBeenSet() const
Definition Contact.h:370
int GetQueueTimeAdjustmentSeconds() const
Definition Contact.h:326
Contact & WithConnectedToSystemTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:374
Contact & WithLastResumedTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:254
Contact & AddSegmentAttributes(const char *key, const SegmentAttributeValue &value)
Definition Contact.h:481
void SetQueueInfo(QueueInfo &&value)
Definition Contact.h:172
void SetCustomer(const Customer &value)
Definition Contact.h:395
void SetConnectedToSystemTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:371
const CustomerVoiceActivity & GetCustomerVoiceActivity() const
Definition Contact.h:430
void SetInitiationMethod(ContactInitiationMethod &&value)
Definition Contact.h:120
Contact & WithId(const char *value)
Definition Contact.h:80
void SetLastPausedTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:241
const DisconnectDetails & GetDisconnectDetails() const
Definition Contact.h:454
Contact & WithInitialContactId(Aws::String &&value)
Definition Contact.h:94
Contact & AddTags(Aws::String &&key, Aws::String &&value)
Definition Contact.h:359
void SetDescription(const Aws::String &value)
Definition Contact.h:145
void SetLastPausedTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:240
AWS_CONNECT_API Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastResumedTimestampHasBeenSet() const
Definition Contact.h:251
Contact & WithDisconnectDetails(const DisconnectDetails &value)
Definition Contact.h:458
const Aws::String & GetArn() const
Definition Contact.h:59
Contact & WithCustomer(Customer &&value)
Definition Contact.h:398
Contact & AddTags(const Aws::String &key, const Aws::String &value)
Definition Contact.h:356
void SetCampaign(const Campaign &value)
Definition Contact.h:405
void SetChannel(Channel &&value)
Definition Contact.h:160
Contact & WithAgentInfo(const AgentInfo &value)
Definition Contact.h:185
bool RoutingCriteriaHasBeenSet() const
Definition Contact.h:382
void SetRelatedContactId(const Aws::String &value)
Definition Contact.h:299
bool QueueTimeAdjustmentSecondsHasBeenSet() const
Definition Contact.h:327
Contact & WithAgentInfo(AgentInfo &&value)
Definition Contact.h:186
bool PreviousContactIdHasBeenSet() const
Definition Contact.h:104
Contact & WithInitiationTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:205
long long GetQueuePriority() const
Definition Contact.h:339
void SetArn(const Aws::String &value)
Definition Contact.h:61
void SetId(const Aws::String &value)
Definition Contact.h:75
Contact & WithQualityMetrics(QualityMetrics &&value)
Definition Contact.h:447
void SetLastResumedTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:253
Contact & WithName(const Aws::String &value)
Definition Contact.h:134
bool InitiationMethodHasBeenSet() const
Definition Contact.h:118
void SetDisconnectTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:217
Contact & WithDescription(const char *value)
Definition Contact.h:150
void SetTotalPauseDurationInSeconds(int value)
Definition Contact.h:274
void SetInitiationMethod(const ContactInitiationMethod &value)
Definition Contact.h:119
Contact & AddTags(Aws::String &&key, const Aws::String &value)
Definition Contact.h:357
bool LastPausedTimestampHasBeenSet() const
Definition Contact.h:239
Contact & WithTotalPauseDurationInSeconds(int value)
Definition Contact.h:275
Contact & WithConnectedToSystemTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:373
bool CampaignHasBeenSet() const
Definition Contact.h:404
void SetPreviousContactId(const Aws::String &value)
Definition Contact.h:105
bool CustomerVoiceActivityHasBeenSet() const
Definition Contact.h:431
const Aws::String & GetInitialContactId() const
Definition Contact.h:88
Contact & AddSegmentAttributes(Aws::String &&key, const SegmentAttributeValue &value)
Definition Contact.h:477
bool QueueInfoHasBeenSet() const
Definition Contact.h:170
void SetInitialContactId(const Aws::String &value)
Definition Contact.h:90
Contact & AddTags(const char *key, Aws::String &&value)
Definition Contact.h:360
bool TagsHasBeenSet() const
Definition Contact.h:351
const AgentInfo & GetAgentInfo() const
Definition Contact.h:181
const QueueInfo & GetQueueInfo() const
Definition Contact.h:169
bool CustomerHasBeenSet() const
Definition Contact.h:394
void SetDescription(Aws::String &&value)
Definition Contact.h:146
void SetId(const char *value)
Definition Contact.h:77
bool TotalPauseDurationInSecondsHasBeenSet() const
Definition Contact.h:273
Contact & WithWisdomInfo(WisdomInfo &&value)
Definition Contact.h:316
void SetAgentInfo(AgentInfo &&value)
Definition Contact.h:184
const Aws::String & GetName() const
Definition Contact.h:129
Contact & WithChannel(Channel &&value)
Definition Contact.h:162
bool ArnHasBeenSet() const
Definition Contact.h:60
Contact & WithDisconnectTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:219
AWS_CONNECT_API Contact()
const ContactInitiationMethod & GetInitiationMethod() const
Definition Contact.h:117
void SetConnectedToSystemTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:372
Contact & WithQueueTimeAdjustmentSeconds(int value)
Definition Contact.h:329
const Customer & GetCustomer() const
Definition Contact.h:393
void SetSegmentAttributes(const Aws::Map< Aws::String, SegmentAttributeValue > &value)
Definition Contact.h:472
const Aws::Utils::DateTime & GetDisconnectTimestamp() const
Definition Contact.h:214
void SetQueuePriority(long long value)
Definition Contact.h:341
Contact & WithRelatedContactId(const char *value)
Definition Contact.h:304
Contact & WithCampaign(Campaign &&value)
Definition Contact.h:408
bool InitialContactIdHasBeenSet() const
Definition Contact.h:89
void SetAnsweringMachineDetectionStatus(AnsweringMachineDetectionStatus &&value)
Definition Contact.h:421
Contact & WithRelatedContactId(Aws::String &&value)
Definition Contact.h:303
Contact & WithArn(const char *value)
Definition Contact.h:66
bool WisdomInfoHasBeenSet() const
Definition Contact.h:312
Contact & WithId(Aws::String &&value)
Definition Contact.h:79
bool DisconnectDetailsHasBeenSet() const
Definition Contact.h:455
Contact & AddSegmentAttributes(const Aws::String &key, const SegmentAttributeValue &value)
Definition Contact.h:476
Contact & AddTags(const Aws::String &key, Aws::String &&value)
Definition Contact.h:358
void SetScheduledTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:285
const WisdomInfo & GetWisdomInfo() const
Definition Contact.h:311
Contact & WithId(const Aws::String &value)
Definition Contact.h:78
Contact & WithLastResumedTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:255
bool RelatedContactIdHasBeenSet() const
Definition Contact.h:298
void SetName(Aws::String &&value)
Definition Contact.h:132
Contact & AddTags(Aws::String &&key, const char *value)
Definition Contact.h:361
bool QueuePriorityHasBeenSet() const
Definition Contact.h:340
Contact & WithLastUpdateTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:231
void SetInitiationTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:204
const AnsweringMachineDetectionStatus & GetAnsweringMachineDetectionStatus() const
Definition Contact.h:418
Contact & WithQualityMetrics(const QualityMetrics &value)
Definition Contact.h:446
void SetWisdomInfo(WisdomInfo &&value)
Definition Contact.h:314
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Contact.h:350
Contact & WithDescription(const Aws::String &value)
Definition Contact.h:148
void SetDescription(const char *value)
Definition Contact.h:147
const Campaign & GetCampaign() const
Definition Contact.h:403
Contact & WithName(Aws::String &&value)
Definition Contact.h:135
Contact & WithChannel(const Channel &value)
Definition Contact.h:161
Contact & WithDescription(Aws::String &&value)
Definition Contact.h:149
void SetCustomerVoiceActivity(const CustomerVoiceActivity &value)
Definition Contact.h:432
void SetInitialContactId(Aws::String &&value)
Definition Contact.h:91
const Channel & GetChannel() const
Definition Contact.h:157
bool IdHasBeenSet() const
Definition Contact.h:74
const Aws::String & GetDescription() const
Definition Contact.h:143
void SetCampaign(Campaign &&value)
Definition Contact.h:406
void SetLastResumedTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:252
Contact & WithLastPausedTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:243
const Aws::Utils::DateTime & GetInitiationTimestamp() const
Definition Contact.h:201
Contact & WithTotalPauseCount(int value)
Definition Contact.h:265
Contact & WithPreviousContactId(const char *value)
Definition Contact.h:110
void SetRelatedContactId(Aws::String &&value)
Definition Contact.h:300
void SetInitiationTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:203
void SetId(Aws::String &&value)
Definition Contact.h:76
const Aws::Utils::DateTime & GetConnectedToSystemTimestamp() const
Definition Contact.h:369
void SetQueueTimeAdjustmentSeconds(int value)
Definition Contact.h:328
bool QualityMetricsHasBeenSet() const
Definition Contact.h:443
const Aws::String & GetPreviousContactId() const
Definition Contact.h:103
bool ScheduledTimestampHasBeenSet() const
Definition Contact.h:284
void SetLastUpdateTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:228
Contact & WithSegmentAttributes(Aws::Map< Aws::String, SegmentAttributeValue > &&value)
Definition Contact.h:475
void SetArn(const char *value)
Definition Contact.h:63
bool InitiationTimestampHasBeenSet() const
Definition Contact.h:202
Contact & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Contact.h:355
bool ChannelHasBeenSet() const
Definition Contact.h:158
bool TotalPauseCountHasBeenSet() const
Definition Contact.h:263
void SetChannel(const Channel &value)
Definition Contact.h:159
void SetDisconnectTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:216
void SetInitialContactId(const char *value)
Definition Contact.h:92
void SetName(const Aws::String &value)
Definition Contact.h:131
Contact & WithInitiationTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:206
bool DisconnectTimestampHasBeenSet() const
Definition Contact.h:215
Contact & WithQueueInfo(QueueInfo &&value)
Definition Contact.h:174
Contact & WithLastUpdateTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:230
Contact & WithName(const char *value)
Definition Contact.h:136
void SetPreviousContactId(Aws::String &&value)
Definition Contact.h:106
const Aws::Utils::DateTime & GetScheduledTimestamp() const
Definition Contact.h:283
int GetTotalPauseCount() const
Definition Contact.h:262
Contact & AddSegmentAttributes(Aws::String &&key, SegmentAttributeValue &&value)
Definition Contact.h:479
Contact & AddSegmentAttributes(const Aws::String &key, SegmentAttributeValue &&value)
Definition Contact.h:478
void SetQualityMetrics(QualityMetrics &&value)
Definition Contact.h:445
const QualityMetrics & GetQualityMetrics() const
Definition Contact.h:442
void SetAnsweringMachineDetectionStatus(const AnsweringMachineDetectionStatus &value)
Definition Contact.h:420
Contact & WithDisconnectDetails(DisconnectDetails &&value)
Definition Contact.h:459
void SetPreviousContactId(const char *value)
Definition Contact.h:107
void SetDisconnectDetails(const DisconnectDetails &value)
Definition Contact.h:456
void SetArn(Aws::String &&value)
Definition Contact.h:62
const Aws::Utils::DateTime & GetLastUpdateTimestamp() const
Definition Contact.h:226
Contact & WithQueuePriority(long long value)
Definition Contact.h:342
Contact & WithInitialContactId(const Aws::String &value)
Definition Contact.h:93
Contact & WithInitiationMethod(const ContactInitiationMethod &value)
Definition Contact.h:121
const RoutingCriteria & GetRoutingCriteria() const
Definition Contact.h:381
Contact & WithSegmentAttributes(const Aws::Map< Aws::String, SegmentAttributeValue > &value)
Definition Contact.h:474
void SetTotalPauseCount(int value)
Definition Contact.h:264
void SetAgentInfo(const AgentInfo &value)
Definition Contact.h:183
bool NameHasBeenSet() const
Definition Contact.h:130
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
Aws::Utils::Json::JsonValue JsonValue