AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCampaignsV2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig() = default;
36 AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const LocalTimeZoneConfig& GetLocalTimeZoneConfig() const { return m_localTimeZoneConfig; }
44 inline bool LocalTimeZoneConfigHasBeenSet() const { return m_localTimeZoneConfigHasBeenSet; }
45 template<typename LocalTimeZoneConfigT = LocalTimeZoneConfig>
46 void SetLocalTimeZoneConfig(LocalTimeZoneConfigT&& value) { m_localTimeZoneConfigHasBeenSet = true; m_localTimeZoneConfig = std::forward<LocalTimeZoneConfigT>(value); }
47 template<typename LocalTimeZoneConfigT = LocalTimeZoneConfig>
48 CommunicationTimeConfig& WithLocalTimeZoneConfig(LocalTimeZoneConfigT&& value) { SetLocalTimeZoneConfig(std::forward<LocalTimeZoneConfigT>(value)); return *this;}
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) { m_telephonyHasBeenSet = true; m_telephony = std::forward<TelephonyT>(value); }
57 template<typename TelephonyT = TimeWindow>
58 CommunicationTimeConfig& WithTelephony(TelephonyT&& value) { SetTelephony(std::forward<TelephonyT>(value)); return *this;}
60
62
63 inline const TimeWindow& GetSms() const { return m_sms; }
64 inline bool SmsHasBeenSet() const { return m_smsHasBeenSet; }
65 template<typename SmsT = TimeWindow>
66 void SetSms(SmsT&& value) { m_smsHasBeenSet = true; m_sms = std::forward<SmsT>(value); }
67 template<typename SmsT = TimeWindow>
68 CommunicationTimeConfig& WithSms(SmsT&& value) { SetSms(std::forward<SmsT>(value)); return *this;}
70
72
73 inline const TimeWindow& GetEmail() const { return m_email; }
74 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
75 template<typename EmailT = TimeWindow>
76 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
77 template<typename EmailT = TimeWindow>
78 CommunicationTimeConfig& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
80 private:
81
82 LocalTimeZoneConfig m_localTimeZoneConfig;
83 bool m_localTimeZoneConfigHasBeenSet = false;
84
85 TimeWindow m_telephony;
86 bool m_telephonyHasBeenSet = false;
87
88 TimeWindow m_sms;
89 bool m_smsHasBeenSet = false;
90
91 TimeWindow m_email;
92 bool m_emailHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ConnectCampaignsV2
97} // 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)
Aws::Utils::Json::JsonValue JsonValue