AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReceiptRule.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/email/model/TlsPolicy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/email/model/ReceiptAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace SES
25{
26namespace Model
27{
28
42 {
43 public:
44 AWS_SES_API ReceiptRule() = default;
45 AWS_SES_API ReceiptRule(const Aws::Utils::Xml::XmlNode& xmlNode);
46 AWS_SES_API ReceiptRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 ReceiptRule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
73 inline bool GetEnabled() const { return m_enabled; }
74 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
75 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 inline ReceiptRule& WithEnabled(bool value) { SetEnabled(value); return *this;}
78
80
86 inline TlsPolicy GetTlsPolicy() const { return m_tlsPolicy; }
87 inline bool TlsPolicyHasBeenSet() const { return m_tlsPolicyHasBeenSet; }
88 inline void SetTlsPolicy(TlsPolicy value) { m_tlsPolicyHasBeenSet = true; m_tlsPolicy = value; }
89 inline ReceiptRule& WithTlsPolicy(TlsPolicy value) { SetTlsPolicy(value); return *this;}
91
93
98 inline const Aws::Vector<Aws::String>& GetRecipients() const { return m_recipients; }
99 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
100 template<typename RecipientsT = Aws::Vector<Aws::String>>
101 void SetRecipients(RecipientsT&& value) { m_recipientsHasBeenSet = true; m_recipients = std::forward<RecipientsT>(value); }
102 template<typename RecipientsT = Aws::Vector<Aws::String>>
103 ReceiptRule& WithRecipients(RecipientsT&& value) { SetRecipients(std::forward<RecipientsT>(value)); return *this;}
104 template<typename RecipientsT = Aws::String>
105 ReceiptRule& AddRecipients(RecipientsT&& value) { m_recipientsHasBeenSet = true; m_recipients.emplace_back(std::forward<RecipientsT>(value)); return *this; }
107
109
113 inline const Aws::Vector<ReceiptAction>& GetActions() const { return m_actions; }
114 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
115 template<typename ActionsT = Aws::Vector<ReceiptAction>>
116 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
117 template<typename ActionsT = Aws::Vector<ReceiptAction>>
118 ReceiptRule& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
119 template<typename ActionsT = ReceiptAction>
120 ReceiptRule& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
122
124
128 inline bool GetScanEnabled() const { return m_scanEnabled; }
129 inline bool ScanEnabledHasBeenSet() const { return m_scanEnabledHasBeenSet; }
130 inline void SetScanEnabled(bool value) { m_scanEnabledHasBeenSet = true; m_scanEnabled = value; }
131 inline ReceiptRule& WithScanEnabled(bool value) { SetScanEnabled(value); return *this;}
133 private:
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 bool m_enabled{false};
139 bool m_enabledHasBeenSet = false;
140
141 TlsPolicy m_tlsPolicy{TlsPolicy::NOT_SET};
142 bool m_tlsPolicyHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_recipients;
145 bool m_recipientsHasBeenSet = false;
146
148 bool m_actionsHasBeenSet = false;
149
150 bool m_scanEnabled{false};
151 bool m_scanEnabledHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace SES
156} // namespace Aws
void SetName(NameT &&value)
Definition ReceiptRule.h:63
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SES_API ReceiptRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TlsPolicy GetTlsPolicy() const
Definition ReceiptRule.h:86
const Aws::Vector< ReceiptAction > & GetActions() const
ReceiptRule & AddRecipients(RecipientsT &&value)
ReceiptRule & WithName(NameT &&value)
Definition ReceiptRule.h:65
bool RecipientsHasBeenSet() const
Definition ReceiptRule.h:99
ReceiptRule & WithScanEnabled(bool value)
const Aws::String & GetName() const
Definition ReceiptRule.h:60
void SetActions(ActionsT &&value)
AWS_SES_API ReceiptRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTlsPolicy(TlsPolicy value)
Definition ReceiptRule.h:88
const Aws::Vector< Aws::String > & GetRecipients() const
Definition ReceiptRule.h:98
void SetEnabled(bool value)
Definition ReceiptRule.h:75
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReceiptRule & WithRecipients(RecipientsT &&value)
void SetRecipients(RecipientsT &&value)
ReceiptRule & WithTlsPolicy(TlsPolicy value)
Definition ReceiptRule.h:89
void SetScanEnabled(bool value)
ReceiptRule & WithEnabled(bool value)
Definition ReceiptRule.h:76
ReceiptRule & AddActions(ActionsT &&value)
AWS_SES_API ReceiptRule()=default
ReceiptRule & WithActions(ActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream