AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
TelephonyOutboundConfig.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/AnswerMachineDetectionConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaignsV2 {
21namespace Model {
22
29 public:
30 AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig() = default;
31 AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetConnectContactFlowId() const { return m_connectContactFlowId; }
38 inline bool ConnectContactFlowIdHasBeenSet() const { return m_connectContactFlowIdHasBeenSet; }
39 template <typename ConnectContactFlowIdT = Aws::String>
40 void SetConnectContactFlowId(ConnectContactFlowIdT&& value) {
41 m_connectContactFlowIdHasBeenSet = true;
42 m_connectContactFlowId = std::forward<ConnectContactFlowIdT>(value);
43 }
44 template <typename ConnectContactFlowIdT = Aws::String>
45 TelephonyOutboundConfig& WithConnectContactFlowId(ConnectContactFlowIdT&& value) {
46 SetConnectContactFlowId(std::forward<ConnectContactFlowIdT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetConnectSourcePhoneNumber() const { return m_connectSourcePhoneNumber; }
54 inline bool ConnectSourcePhoneNumberHasBeenSet() const { return m_connectSourcePhoneNumberHasBeenSet; }
55 template <typename ConnectSourcePhoneNumberT = Aws::String>
56 void SetConnectSourcePhoneNumber(ConnectSourcePhoneNumberT&& value) {
57 m_connectSourcePhoneNumberHasBeenSet = true;
58 m_connectSourcePhoneNumber = std::forward<ConnectSourcePhoneNumberT>(value);
59 }
60 template <typename ConnectSourcePhoneNumberT = Aws::String>
61 TelephonyOutboundConfig& WithConnectSourcePhoneNumber(ConnectSourcePhoneNumberT&& value) {
62 SetConnectSourcePhoneNumber(std::forward<ConnectSourcePhoneNumberT>(value));
63 return *this;
64 }
66
68
69 inline const AnswerMachineDetectionConfig& GetAnswerMachineDetectionConfig() const { return m_answerMachineDetectionConfig; }
70 inline bool AnswerMachineDetectionConfigHasBeenSet() const { return m_answerMachineDetectionConfigHasBeenSet; }
71 template <typename AnswerMachineDetectionConfigT = AnswerMachineDetectionConfig>
72 void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT&& value) {
73 m_answerMachineDetectionConfigHasBeenSet = true;
74 m_answerMachineDetectionConfig = std::forward<AnswerMachineDetectionConfigT>(value);
75 }
76 template <typename AnswerMachineDetectionConfigT = AnswerMachineDetectionConfig>
77 TelephonyOutboundConfig& WithAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT&& value) {
78 SetAnswerMachineDetectionConfig(std::forward<AnswerMachineDetectionConfigT>(value));
79 return *this;
80 }
82
84
85 inline int GetRingTimeout() const { return m_ringTimeout; }
86 inline bool RingTimeoutHasBeenSet() const { return m_ringTimeoutHasBeenSet; }
87 inline void SetRingTimeout(int value) {
88 m_ringTimeoutHasBeenSet = true;
89 m_ringTimeout = value;
90 }
92 SetRingTimeout(value);
93 return *this;
94 }
96 private:
97 Aws::String m_connectContactFlowId;
98
99 Aws::String m_connectSourcePhoneNumber;
100
101 AnswerMachineDetectionConfig m_answerMachineDetectionConfig;
102
103 int m_ringTimeout{0};
104 bool m_connectContactFlowIdHasBeenSet = false;
105 bool m_connectSourcePhoneNumberHasBeenSet = false;
106 bool m_answerMachineDetectionConfigHasBeenSet = false;
107 bool m_ringTimeoutHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace ConnectCampaignsV2
112} // namespace Aws
TelephonyOutboundConfig & WithConnectContactFlowId(ConnectContactFlowIdT &&value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
TelephonyOutboundConfig & WithConnectSourcePhoneNumber(ConnectSourcePhoneNumberT &&value)
TelephonyOutboundConfig & WithAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT &&value)
void SetConnectSourcePhoneNumber(ConnectSourcePhoneNumberT &&value)
AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig(Aws::Utils::Json::JsonView jsonValue)
void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfigT &&value)
AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig()=default
const AnswerMachineDetectionConfig & GetAnswerMachineDetectionConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue