AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CommunicationTimeConfig.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/LocalTimeZoneConfig.h>
9#include <aws/connectcampaignsv2/model/TimeWindow.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 CommunicationTimeConfig() = default;
31 AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const LocalTimeZoneConfig& GetLocalTimeZoneConfig() const { return m_localTimeZoneConfig; }
38 inline bool LocalTimeZoneConfigHasBeenSet() const { return m_localTimeZoneConfigHasBeenSet; }
39 template <typename LocalTimeZoneConfigT = LocalTimeZoneConfig>
40 void SetLocalTimeZoneConfig(LocalTimeZoneConfigT&& value) {
41 m_localTimeZoneConfigHasBeenSet = true;
42 m_localTimeZoneConfig = std::forward<LocalTimeZoneConfigT>(value);
43 }
44 template <typename LocalTimeZoneConfigT = LocalTimeZoneConfig>
45 CommunicationTimeConfig& WithLocalTimeZoneConfig(LocalTimeZoneConfigT&& value) {
46 SetLocalTimeZoneConfig(std::forward<LocalTimeZoneConfigT>(value));
47 return *this;
48 }
50
52
53 inline const TimeWindow& GetTelephony() const { return m_telephony; }
54 inline bool TelephonyHasBeenSet() const { return m_telephonyHasBeenSet; }
55 template <typename TelephonyT = TimeWindow>
56 void SetTelephony(TelephonyT&& value) {
57 m_telephonyHasBeenSet = true;
58 m_telephony = std::forward<TelephonyT>(value);
59 }
60 template <typename TelephonyT = TimeWindow>
62 SetTelephony(std::forward<TelephonyT>(value));
63 return *this;
64 }
66
68
69 inline const TimeWindow& GetSms() const { return m_sms; }
70 inline bool SmsHasBeenSet() const { return m_smsHasBeenSet; }
71 template <typename SmsT = TimeWindow>
72 void SetSms(SmsT&& value) {
73 m_smsHasBeenSet = true;
74 m_sms = std::forward<SmsT>(value);
75 }
76 template <typename SmsT = TimeWindow>
78 SetSms(std::forward<SmsT>(value));
79 return *this;
80 }
82
84
85 inline const TimeWindow& GetEmail() const { return m_email; }
86 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
87 template <typename EmailT = TimeWindow>
88 void SetEmail(EmailT&& value) {
89 m_emailHasBeenSet = true;
90 m_email = std::forward<EmailT>(value);
91 }
92 template <typename EmailT = TimeWindow>
94 SetEmail(std::forward<EmailT>(value));
95 return *this;
96 }
98
100
101 inline const TimeWindow& GetWhatsApp() const { return m_whatsApp; }
102 inline bool WhatsAppHasBeenSet() const { return m_whatsAppHasBeenSet; }
103 template <typename WhatsAppT = TimeWindow>
104 void SetWhatsApp(WhatsAppT&& value) {
105 m_whatsAppHasBeenSet = true;
106 m_whatsApp = std::forward<WhatsAppT>(value);
107 }
108 template <typename WhatsAppT = TimeWindow>
110 SetWhatsApp(std::forward<WhatsAppT>(value));
111 return *this;
112 }
114 private:
115 LocalTimeZoneConfig m_localTimeZoneConfig;
116
117 TimeWindow m_telephony;
118
119 TimeWindow m_sms;
120
121 TimeWindow m_email;
122
123 TimeWindow m_whatsApp;
124 bool m_localTimeZoneConfigHasBeenSet = false;
125 bool m_telephonyHasBeenSet = false;
126 bool m_smsHasBeenSet = false;
127 bool m_emailHasBeenSet = false;
128 bool m_whatsAppHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace ConnectCampaignsV2
133} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig()=default
CommunicationTimeConfig & WithTelephony(TelephonyT &&value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
CommunicationTimeConfig & WithLocalTimeZoneConfig(LocalTimeZoneConfigT &&value)
CommunicationTimeConfig & WithWhatsApp(WhatsAppT &&value)
Aws::Utils::Json::JsonValue JsonValue