AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
StartOutboundVoiceContactRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/AnswerMachineDetectionConfig.h>
10#include <aws/connect/model/OutboundStrategy.h>
11#include <aws/connect/model/Reference.h>
12#include <aws/connect/model/TrafficType.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
17#include <utility>
18
19namespace Aws {
20namespace Connect {
21namespace Model {
22
26 public:
27 AWS_CONNECT_API StartOutboundVoiceContactRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartOutboundVoiceContact"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::Map<Aws::String, Reference>& GetReferences() const { return m_references; }
86 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
87 template <typename ReferencesT = Aws::Map<Aws::String, Reference>>
88 void SetReferences(ReferencesT&& value) {
89 m_referencesHasBeenSet = true;
90 m_references = std::forward<ReferencesT>(value);
91 }
92 template <typename ReferencesT = Aws::Map<Aws::String, Reference>>
94 SetReferences(std::forward<ReferencesT>(value));
95 return *this;
96 }
97 template <typename ReferencesKeyT = Aws::String, typename ReferencesValueT = Reference>
98 StartOutboundVoiceContactRequest& AddReferences(ReferencesKeyT&& key, ReferencesValueT&& value) {
99 m_referencesHasBeenSet = true;
100 m_references.emplace(std::forward<ReferencesKeyT>(key), std::forward<ReferencesValueT>(value));
101 return *this;
102 }
104
106
114 inline const Aws::String& GetRelatedContactId() const { return m_relatedContactId; }
115 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
116 template <typename RelatedContactIdT = Aws::String>
117 void SetRelatedContactId(RelatedContactIdT&& value) {
118 m_relatedContactIdHasBeenSet = true;
119 m_relatedContactId = std::forward<RelatedContactIdT>(value);
120 }
121 template <typename RelatedContactIdT = Aws::String>
123 SetRelatedContactId(std::forward<RelatedContactIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDestinationPhoneNumber() const { return m_destinationPhoneNumber; }
133 inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; }
134 template <typename DestinationPhoneNumberT = Aws::String>
135 void SetDestinationPhoneNumber(DestinationPhoneNumberT&& value) {
136 m_destinationPhoneNumberHasBeenSet = true;
137 m_destinationPhoneNumber = std::forward<DestinationPhoneNumberT>(value);
138 }
139 template <typename DestinationPhoneNumberT = Aws::String>
141 SetDestinationPhoneNumber(std::forward<DestinationPhoneNumberT>(value));
142 return *this;
143 }
145
147
156 inline const Aws::String& GetContactFlowId() const { return m_contactFlowId; }
157 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
158 template <typename ContactFlowIdT = Aws::String>
159 void SetContactFlowId(ContactFlowIdT&& value) {
160 m_contactFlowIdHasBeenSet = true;
161 m_contactFlowId = std::forward<ContactFlowIdT>(value);
162 }
163 template <typename ContactFlowIdT = Aws::String>
165 SetContactFlowId(std::forward<ContactFlowIdT>(value));
166 return *this;
167 }
169
171
176 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
177 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
178 template <typename InstanceIdT = Aws::String>
179 void SetInstanceId(InstanceIdT&& value) {
180 m_instanceIdHasBeenSet = true;
181 m_instanceId = std::forward<InstanceIdT>(value);
182 }
183 template <typename InstanceIdT = Aws::String>
185 SetInstanceId(std::forward<InstanceIdT>(value));
186 return *this;
187 }
189
191
199 inline const Aws::String& GetClientToken() const { return m_clientToken; }
200 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
201 template <typename ClientTokenT = Aws::String>
202 void SetClientToken(ClientTokenT&& value) {
203 m_clientTokenHasBeenSet = true;
204 m_clientToken = std::forward<ClientTokenT>(value);
205 }
206 template <typename ClientTokenT = Aws::String>
208 SetClientToken(std::forward<ClientTokenT>(value));
209 return *this;
210 }
212
214
219 inline const Aws::String& GetSourcePhoneNumber() const { return m_sourcePhoneNumber; }
220 inline bool SourcePhoneNumberHasBeenSet() const { return m_sourcePhoneNumberHasBeenSet; }
221 template <typename SourcePhoneNumberT = Aws::String>
222 void SetSourcePhoneNumber(SourcePhoneNumberT&& value) {
223 m_sourcePhoneNumberHasBeenSet = true;
224 m_sourcePhoneNumber = std::forward<SourcePhoneNumberT>(value);
225 }
226 template <typename SourcePhoneNumberT = Aws::String>
228 SetSourcePhoneNumber(std::forward<SourcePhoneNumberT>(value));
229 return *this;
230 }
232
234
240 inline const Aws::String& GetQueueId() const { return m_queueId; }
241 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
242 template <typename QueueIdT = Aws::String>
243 void SetQueueId(QueueIdT&& value) {
244 m_queueIdHasBeenSet = true;
245 m_queueId = std::forward<QueueIdT>(value);
246 }
247 template <typename QueueIdT = Aws::String>
249 SetQueueId(std::forward<QueueIdT>(value));
250 return *this;
251 }
253
255
262 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
263 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
264 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
265 void SetAttributes(AttributesT&& value) {
266 m_attributesHasBeenSet = true;
267 m_attributes = std::forward<AttributesT>(value);
268 }
269 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
271 SetAttributes(std::forward<AttributesT>(value));
272 return *this;
273 }
274 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
275 StartOutboundVoiceContactRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
276 m_attributesHasBeenSet = true;
277 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
278 return *this;
279 }
281
283
286 inline const AnswerMachineDetectionConfig& GetAnswerMachineDetectionConfig() const { return m_answerMachineDetectionConfig; }
287 inline bool AnswerMachineDetectionConfigHasBeenSet() const { return m_answerMachineDetectionConfigHasBeenSet; }
288 template <typename AnswerMachineDetectionConfigT = AnswerMachineDetectionConfig>
289 void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT&& value) {
290 m_answerMachineDetectionConfigHasBeenSet = true;
291 m_answerMachineDetectionConfig = std::forward<AnswerMachineDetectionConfigT>(value);
292 }
293 template <typename AnswerMachineDetectionConfigT = AnswerMachineDetectionConfig>
295 SetAnswerMachineDetectionConfig(std::forward<AnswerMachineDetectionConfigT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::String& GetCampaignId() const { return m_campaignId; }
305 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
306 template <typename CampaignIdT = Aws::String>
307 void SetCampaignId(CampaignIdT&& value) {
308 m_campaignIdHasBeenSet = true;
309 m_campaignId = std::forward<CampaignIdT>(value);
310 }
311 template <typename CampaignIdT = Aws::String>
313 SetCampaignId(std::forward<CampaignIdT>(value));
314 return *this;
315 }
317
319
325 inline TrafficType GetTrafficType() const { return m_trafficType; }
326 inline bool TrafficTypeHasBeenSet() const { return m_trafficTypeHasBeenSet; }
327 inline void SetTrafficType(TrafficType value) {
328 m_trafficTypeHasBeenSet = true;
329 m_trafficType = value;
330 }
332 SetTrafficType(value);
333 return *this;
334 }
336
338
341 inline const OutboundStrategy& GetOutboundStrategy() const { return m_outboundStrategy; }
342 inline bool OutboundStrategyHasBeenSet() const { return m_outboundStrategyHasBeenSet; }
343 template <typename OutboundStrategyT = OutboundStrategy>
344 void SetOutboundStrategy(OutboundStrategyT&& value) {
345 m_outboundStrategyHasBeenSet = true;
346 m_outboundStrategy = std::forward<OutboundStrategyT>(value);
347 }
348 template <typename OutboundStrategyT = OutboundStrategy>
350 SetOutboundStrategy(std::forward<OutboundStrategyT>(value));
351 return *this;
352 }
354 private:
355 Aws::String m_name;
356 bool m_nameHasBeenSet = false;
357
358 Aws::String m_description;
359 bool m_descriptionHasBeenSet = false;
360
362 bool m_referencesHasBeenSet = false;
363
364 Aws::String m_relatedContactId;
365 bool m_relatedContactIdHasBeenSet = false;
366
367 Aws::String m_destinationPhoneNumber;
368 bool m_destinationPhoneNumberHasBeenSet = false;
369
370 Aws::String m_contactFlowId;
371 bool m_contactFlowIdHasBeenSet = false;
372
373 Aws::String m_instanceId;
374 bool m_instanceIdHasBeenSet = false;
375
377 bool m_clientTokenHasBeenSet = true;
378
379 Aws::String m_sourcePhoneNumber;
380 bool m_sourcePhoneNumberHasBeenSet = false;
381
382 Aws::String m_queueId;
383 bool m_queueIdHasBeenSet = false;
384
386 bool m_attributesHasBeenSet = false;
387
388 AnswerMachineDetectionConfig m_answerMachineDetectionConfig;
389 bool m_answerMachineDetectionConfigHasBeenSet = false;
390
391 Aws::String m_campaignId;
392 bool m_campaignIdHasBeenSet = false;
393
394 TrafficType m_trafficType{TrafficType::NOT_SET};
395 bool m_trafficTypeHasBeenSet = false;
396
397 OutboundStrategy m_outboundStrategy;
398 bool m_outboundStrategyHasBeenSet = false;
399};
400
401} // namespace Model
402} // namespace Connect
403} // namespace Aws
StartOutboundVoiceContactRequest & WithOutboundStrategy(OutboundStrategyT &&value)
StartOutboundVoiceContactRequest & WithAttributes(AttributesT &&value)
StartOutboundVoiceContactRequest & WithName(NameT &&value)
const AnswerMachineDetectionConfig & GetAnswerMachineDetectionConfig() const
StartOutboundVoiceContactRequest & WithSourcePhoneNumber(SourcePhoneNumberT &&value)
StartOutboundVoiceContactRequest & WithDestinationPhoneNumber(DestinationPhoneNumberT &&value)
StartOutboundVoiceContactRequest & WithRelatedContactId(RelatedContactIdT &&value)
StartOutboundVoiceContactRequest & WithContactFlowId(ContactFlowIdT &&value)
StartOutboundVoiceContactRequest & WithQueueId(QueueIdT &&value)
void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
StartOutboundVoiceContactRequest & WithClientToken(ClientTokenT &&value)
AWS_CONNECT_API StartOutboundVoiceContactRequest()=default
StartOutboundVoiceContactRequest & WithInstanceId(InstanceIdT &&value)
StartOutboundVoiceContactRequest & WithReferences(ReferencesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
StartOutboundVoiceContactRequest & WithAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT &&value)
StartOutboundVoiceContactRequest & WithCampaignId(CampaignIdT &&value)
StartOutboundVoiceContactRequest & AddReferences(ReferencesKeyT &&key, ReferencesValueT &&value)
StartOutboundVoiceContactRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Reference > & GetReferences() const
StartOutboundVoiceContactRequest & WithTrafficType(TrafficType value)
StartOutboundVoiceContactRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&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