AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
EmailConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/EmailContent.h>
10#include <aws/iotevents/model/EmailRecipients.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTEvents {
22namespace Model {
23
31 public:
32 AWS_IOTEVENTS_API EmailConfiguration() = default;
33 AWS_IOTEVENTS_API EmailConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetFrom() const { return m_from; }
45 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
46 template <typename FromT = Aws::String>
47 void SetFrom(FromT&& value) {
48 m_fromHasBeenSet = true;
49 m_from = std::forward<FromT>(value);
50 }
51 template <typename FromT = Aws::String>
52 EmailConfiguration& WithFrom(FromT&& value) {
53 SetFrom(std::forward<FromT>(value));
54 return *this;
55 }
57
59
62 inline const EmailContent& GetContent() const { return m_content; }
63 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
64 template <typename ContentT = EmailContent>
65 void SetContent(ContentT&& value) {
66 m_contentHasBeenSet = true;
67 m_content = std::forward<ContentT>(value);
68 }
69 template <typename ContentT = EmailContent>
70 EmailConfiguration& WithContent(ContentT&& value) {
71 SetContent(std::forward<ContentT>(value));
72 return *this;
73 }
75
77
83 inline const EmailRecipients& GetRecipients() const { return m_recipients; }
84 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
85 template <typename RecipientsT = EmailRecipients>
86 void SetRecipients(RecipientsT&& value) {
87 m_recipientsHasBeenSet = true;
88 m_recipients = std::forward<RecipientsT>(value);
89 }
90 template <typename RecipientsT = EmailRecipients>
91 EmailConfiguration& WithRecipients(RecipientsT&& value) {
92 SetRecipients(std::forward<RecipientsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_from;
98
99 EmailContent m_content;
100
101 EmailRecipients m_recipients;
102 bool m_fromHasBeenSet = false;
103 bool m_contentHasBeenSet = false;
104 bool m_recipientsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace IoTEvents
109} // namespace Aws
EmailConfiguration & WithContent(ContentT &&value)
AWS_IOTEVENTS_API EmailConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API EmailConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const EmailRecipients & GetRecipients() const
AWS_IOTEVENTS_API EmailConfiguration()=default
EmailConfiguration & WithRecipients(RecipientsT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EmailConfiguration & WithFrom(FromT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue