AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
StartTaskContactRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/Reference.h>
10#include <aws/connect/model/SegmentAttributeValue.h>
11#include <aws/connect/model/TaskAttachment.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Connect {
22namespace Model {
23
27 public:
28 AWS_CONNECT_API StartTaskContactRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartTaskContact"; }
35
36 AWS_CONNECT_API Aws::String SerializePayload() const override;
37
39
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template <typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) {
48 m_instanceIdHasBeenSet = true;
49 m_instanceId = std::forward<InstanceIdT>(value);
50 }
51 template <typename InstanceIdT = Aws::String>
53 SetInstanceId(std::forward<InstanceIdT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetPreviousContactId() const { return m_previousContactId; }
66 inline bool PreviousContactIdHasBeenSet() const { return m_previousContactIdHasBeenSet; }
67 template <typename PreviousContactIdT = Aws::String>
68 void SetPreviousContactId(PreviousContactIdT&& value) {
69 m_previousContactIdHasBeenSet = true;
70 m_previousContactId = std::forward<PreviousContactIdT>(value);
71 }
72 template <typename PreviousContactIdT = Aws::String>
73 StartTaskContactRequest& WithPreviousContactId(PreviousContactIdT&& value) {
74 SetPreviousContactId(std::forward<PreviousContactIdT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::String& GetContactFlowId() const { return m_contactFlowId; }
90 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
91 template <typename ContactFlowIdT = Aws::String>
92 void SetContactFlowId(ContactFlowIdT&& value) {
93 m_contactFlowIdHasBeenSet = true;
94 m_contactFlowId = std::forward<ContactFlowIdT>(value);
95 }
96 template <typename ContactFlowIdT = Aws::String>
97 StartTaskContactRequest& WithContactFlowId(ContactFlowIdT&& value) {
98 SetContactFlowId(std::forward<ContactFlowIdT>(value));
99 return *this;
100 }
102
104
111 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
112 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
113 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
114 void SetAttributes(AttributesT&& value) {
115 m_attributesHasBeenSet = true;
116 m_attributes = std::forward<AttributesT>(value);
117 }
118 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
120 SetAttributes(std::forward<AttributesT>(value));
121 return *this;
122 }
123 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
124 StartTaskContactRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
125 m_attributesHasBeenSet = true;
126 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template <typename NameT = Aws::String>
139 void SetName(NameT&& value) {
140 m_nameHasBeenSet = true;
141 m_name = std::forward<NameT>(value);
142 }
143 template <typename NameT = Aws::String>
145 SetName(std::forward<NameT>(value));
146 return *this;
147 }
149
151
158 inline const Aws::Map<Aws::String, Reference>& GetReferences() const { return m_references; }
159 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
160 template <typename ReferencesT = Aws::Map<Aws::String, Reference>>
161 void SetReferences(ReferencesT&& value) {
162 m_referencesHasBeenSet = true;
163 m_references = std::forward<ReferencesT>(value);
164 }
165 template <typename ReferencesT = Aws::Map<Aws::String, Reference>>
167 SetReferences(std::forward<ReferencesT>(value));
168 return *this;
169 }
170 template <typename ReferencesKeyT = Aws::String, typename ReferencesValueT = Reference>
171 StartTaskContactRequest& AddReferences(ReferencesKeyT&& key, ReferencesValueT&& value) {
172 m_referencesHasBeenSet = true;
173 m_references.emplace(std::forward<ReferencesKeyT>(key), std::forward<ReferencesValueT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetDescription() const { return m_description; }
184 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
185 template <typename DescriptionT = Aws::String>
186 void SetDescription(DescriptionT&& value) {
187 m_descriptionHasBeenSet = true;
188 m_description = std::forward<DescriptionT>(value);
189 }
190 template <typename DescriptionT = Aws::String>
192 SetDescription(std::forward<DescriptionT>(value));
193 return *this;
194 }
196
198
205 inline const Aws::String& GetClientToken() const { return m_clientToken; }
206 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
207 template <typename ClientTokenT = Aws::String>
208 void SetClientToken(ClientTokenT&& value) {
209 m_clientTokenHasBeenSet = true;
210 m_clientToken = std::forward<ClientTokenT>(value);
211 }
212 template <typename ClientTokenT = Aws::String>
214 SetClientToken(std::forward<ClientTokenT>(value));
215 return *this;
216 }
218
220
225 inline const Aws::Utils::DateTime& GetScheduledTime() const { return m_scheduledTime; }
226 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
227 template <typename ScheduledTimeT = Aws::Utils::DateTime>
228 void SetScheduledTime(ScheduledTimeT&& value) {
229 m_scheduledTimeHasBeenSet = true;
230 m_scheduledTime = std::forward<ScheduledTimeT>(value);
231 }
232 template <typename ScheduledTimeT = Aws::Utils::DateTime>
234 SetScheduledTime(std::forward<ScheduledTimeT>(value));
235 return *this;
236 }
238
240
246 inline const Aws::String& GetTaskTemplateId() const { return m_taskTemplateId; }
247 inline bool TaskTemplateIdHasBeenSet() const { return m_taskTemplateIdHasBeenSet; }
248 template <typename TaskTemplateIdT = Aws::String>
249 void SetTaskTemplateId(TaskTemplateIdT&& value) {
250 m_taskTemplateIdHasBeenSet = true;
251 m_taskTemplateId = std::forward<TaskTemplateIdT>(value);
252 }
253 template <typename TaskTemplateIdT = Aws::String>
254 StartTaskContactRequest& WithTaskTemplateId(TaskTemplateIdT&& value) {
255 SetTaskTemplateId(std::forward<TaskTemplateIdT>(value));
256 return *this;
257 }
259
261
268 inline const Aws::String& GetQuickConnectId() const { return m_quickConnectId; }
269 inline bool QuickConnectIdHasBeenSet() const { return m_quickConnectIdHasBeenSet; }
270 template <typename QuickConnectIdT = Aws::String>
271 void SetQuickConnectId(QuickConnectIdT&& value) {
272 m_quickConnectIdHasBeenSet = true;
273 m_quickConnectId = std::forward<QuickConnectIdT>(value);
274 }
275 template <typename QuickConnectIdT = Aws::String>
276 StartTaskContactRequest& WithQuickConnectId(QuickConnectIdT&& value) {
277 SetQuickConnectId(std::forward<QuickConnectIdT>(value));
278 return *this;
279 }
281
283
293 inline const Aws::String& GetRelatedContactId() const { return m_relatedContactId; }
294 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
295 template <typename RelatedContactIdT = Aws::String>
296 void SetRelatedContactId(RelatedContactIdT&& value) {
297 m_relatedContactIdHasBeenSet = true;
298 m_relatedContactId = std::forward<RelatedContactIdT>(value);
299 }
300 template <typename RelatedContactIdT = Aws::String>
301 StartTaskContactRequest& WithRelatedContactId(RelatedContactIdT&& value) {
302 SetRelatedContactId(std::forward<RelatedContactIdT>(value));
303 return *this;
304 }
306
308
324 inline const Aws::Map<Aws::String, SegmentAttributeValue>& GetSegmentAttributes() const { return m_segmentAttributes; }
325 inline bool SegmentAttributesHasBeenSet() const { return m_segmentAttributesHasBeenSet; }
326 template <typename SegmentAttributesT = Aws::Map<Aws::String, SegmentAttributeValue>>
327 void SetSegmentAttributes(SegmentAttributesT&& value) {
328 m_segmentAttributesHasBeenSet = true;
329 m_segmentAttributes = std::forward<SegmentAttributesT>(value);
330 }
331 template <typename SegmentAttributesT = Aws::Map<Aws::String, SegmentAttributeValue>>
332 StartTaskContactRequest& WithSegmentAttributes(SegmentAttributesT&& value) {
333 SetSegmentAttributes(std::forward<SegmentAttributesT>(value));
334 return *this;
335 }
336 template <typename SegmentAttributesKeyT = Aws::String, typename SegmentAttributesValueT = SegmentAttributeValue>
337 StartTaskContactRequest& AddSegmentAttributes(SegmentAttributesKeyT&& key, SegmentAttributesValueT&& value) {
338 m_segmentAttributesHasBeenSet = true;
339 m_segmentAttributes.emplace(std::forward<SegmentAttributesKeyT>(key), std::forward<SegmentAttributesValueT>(value));
340 return *this;
341 }
343
345
349 inline const Aws::Vector<TaskAttachment>& GetAttachments() const { return m_attachments; }
350 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
351 template <typename AttachmentsT = Aws::Vector<TaskAttachment>>
352 void SetAttachments(AttachmentsT&& value) {
353 m_attachmentsHasBeenSet = true;
354 m_attachments = std::forward<AttachmentsT>(value);
355 }
356 template <typename AttachmentsT = Aws::Vector<TaskAttachment>>
358 SetAttachments(std::forward<AttachmentsT>(value));
359 return *this;
360 }
361 template <typename AttachmentsT = TaskAttachment>
363 m_attachmentsHasBeenSet = true;
364 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
365 return *this;
366 }
368 private:
369 Aws::String m_instanceId;
370
371 Aws::String m_previousContactId;
372
373 Aws::String m_contactFlowId;
374
376
377 Aws::String m_name;
378
380
381 Aws::String m_description;
382
384
385 Aws::Utils::DateTime m_scheduledTime{};
386
387 Aws::String m_taskTemplateId;
388
389 Aws::String m_quickConnectId;
390
391 Aws::String m_relatedContactId;
392
394
395 Aws::Vector<TaskAttachment> m_attachments;
396 bool m_instanceIdHasBeenSet = false;
397 bool m_previousContactIdHasBeenSet = false;
398 bool m_contactFlowIdHasBeenSet = false;
399 bool m_attributesHasBeenSet = false;
400 bool m_nameHasBeenSet = false;
401 bool m_referencesHasBeenSet = false;
402 bool m_descriptionHasBeenSet = false;
403 bool m_clientTokenHasBeenSet = true;
404 bool m_scheduledTimeHasBeenSet = false;
405 bool m_taskTemplateIdHasBeenSet = false;
406 bool m_quickConnectIdHasBeenSet = false;
407 bool m_relatedContactIdHasBeenSet = false;
408 bool m_segmentAttributesHasBeenSet = false;
409 bool m_attachmentsHasBeenSet = false;
410};
411
412} // namespace Model
413} // namespace Connect
414} // namespace Aws
StartTaskContactRequest & WithReferences(ReferencesT &&value)
StartTaskContactRequest & WithSegmentAttributes(SegmentAttributesT &&value)
StartTaskContactRequest & WithName(NameT &&value)
StartTaskContactRequest & WithContactFlowId(ContactFlowIdT &&value)
const Aws::Map< Aws::String, SegmentAttributeValue > & GetSegmentAttributes() const
StartTaskContactRequest & WithInstanceId(InstanceIdT &&value)
StartTaskContactRequest & AddReferences(ReferencesKeyT &&key, ReferencesValueT &&value)
StartTaskContactRequest & AddAttachments(AttachmentsT &&value)
void SetPreviousContactId(PreviousContactIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
StartTaskContactRequest & WithRelatedContactId(RelatedContactIdT &&value)
const Aws::Utils::DateTime & GetScheduledTime() const
StartTaskContactRequest & WithPreviousContactId(PreviousContactIdT &&value)
const Aws::Map< Aws::String, Reference > & GetReferences() const
AWS_CONNECT_API Aws::String SerializePayload() const override
StartTaskContactRequest & WithTaskTemplateId(TaskTemplateIdT &&value)
StartTaskContactRequest & WithAttachments(AttachmentsT &&value)
StartTaskContactRequest & WithScheduledTime(ScheduledTimeT &&value)
AWS_CONNECT_API StartTaskContactRequest()=default
const Aws::Vector< TaskAttachment > & GetAttachments() const
StartTaskContactRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
void SetSegmentAttributes(SegmentAttributesT &&value)
StartTaskContactRequest & WithDescription(DescriptionT &&value)
StartTaskContactRequest & WithQuickConnectId(QuickConnectIdT &&value)
StartTaskContactRequest & WithClientToken(ClientTokenT &&value)
StartTaskContactRequest & AddSegmentAttributes(SegmentAttributesKeyT &&key, SegmentAttributesValueT &&value)
StartTaskContactRequest & WithAttributes(AttributesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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