AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EmailConfiguration.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/EmailContent.h>
10#include <aws/iotevents/model/EmailRecipients.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTEvents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTEVENTS_API EmailConfiguration() = default;
38 AWS_IOTEVENTS_API EmailConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::String& GetFrom() const { return m_from; }
51 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
52 template<typename FromT = Aws::String>
53 void SetFrom(FromT&& value) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
54 template<typename FromT = Aws::String>
55 EmailConfiguration& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
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) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
66 template<typename ContentT = EmailContent>
67 EmailConfiguration& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
69
71
77 inline const EmailRecipients& GetRecipients() const { return m_recipients; }
78 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
79 template<typename RecipientsT = EmailRecipients>
80 void SetRecipients(RecipientsT&& value) { m_recipientsHasBeenSet = true; m_recipients = std::forward<RecipientsT>(value); }
81 template<typename RecipientsT = EmailRecipients>
82 EmailConfiguration& WithRecipients(RecipientsT&& value) { SetRecipients(std::forward<RecipientsT>(value)); return *this;}
84 private:
85
86 Aws::String m_from;
87 bool m_fromHasBeenSet = false;
88
89 EmailContent m_content;
90 bool m_contentHasBeenSet = false;
91
92 EmailRecipients m_recipients;
93 bool m_recipientsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace IoTEvents
98} // 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