AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline ReceiptRule& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline ReceiptRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline ReceiptRule& WithName(const char* value) { SetName(value); return *this;}
69
71
75 inline bool GetEnabled() const{ return m_enabled; }
76 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
78 inline ReceiptRule& WithEnabled(bool value) { SetEnabled(value); return *this;}
80
82
88 inline const TlsPolicy& GetTlsPolicy() const{ return m_tlsPolicy; }
89 inline bool TlsPolicyHasBeenSet() const { return m_tlsPolicyHasBeenSet; }
90 inline void SetTlsPolicy(const TlsPolicy& value) { m_tlsPolicyHasBeenSet = true; m_tlsPolicy = value; }
91 inline void SetTlsPolicy(TlsPolicy&& value) { m_tlsPolicyHasBeenSet = true; m_tlsPolicy = std::move(value); }
92 inline ReceiptRule& WithTlsPolicy(const TlsPolicy& value) { SetTlsPolicy(value); return *this;}
93 inline ReceiptRule& WithTlsPolicy(TlsPolicy&& value) { SetTlsPolicy(std::move(value)); return *this;}
95
97
102 inline const Aws::Vector<Aws::String>& GetRecipients() const{ return m_recipients; }
103 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
104 inline void SetRecipients(const Aws::Vector<Aws::String>& value) { m_recipientsHasBeenSet = true; m_recipients = value; }
105 inline void SetRecipients(Aws::Vector<Aws::String>&& value) { m_recipientsHasBeenSet = true; m_recipients = std::move(value); }
106 inline ReceiptRule& WithRecipients(const Aws::Vector<Aws::String>& value) { SetRecipients(value); return *this;}
107 inline ReceiptRule& WithRecipients(Aws::Vector<Aws::String>&& value) { SetRecipients(std::move(value)); return *this;}
108 inline ReceiptRule& AddRecipients(const Aws::String& value) { m_recipientsHasBeenSet = true; m_recipients.push_back(value); return *this; }
109 inline ReceiptRule& AddRecipients(Aws::String&& value) { m_recipientsHasBeenSet = true; m_recipients.push_back(std::move(value)); return *this; }
110 inline ReceiptRule& AddRecipients(const char* value) { m_recipientsHasBeenSet = true; m_recipients.push_back(value); return *this; }
112
114
118 inline const Aws::Vector<ReceiptAction>& GetActions() const{ return m_actions; }
119 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
120 inline void SetActions(const Aws::Vector<ReceiptAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
121 inline void SetActions(Aws::Vector<ReceiptAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
122 inline ReceiptRule& WithActions(const Aws::Vector<ReceiptAction>& value) { SetActions(value); return *this;}
123 inline ReceiptRule& WithActions(Aws::Vector<ReceiptAction>&& value) { SetActions(std::move(value)); return *this;}
124 inline ReceiptRule& AddActions(const ReceiptAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
125 inline ReceiptRule& AddActions(ReceiptAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
127
129
133 inline bool GetScanEnabled() const{ return m_scanEnabled; }
134 inline bool ScanEnabledHasBeenSet() const { return m_scanEnabledHasBeenSet; }
135 inline void SetScanEnabled(bool value) { m_scanEnabledHasBeenSet = true; m_scanEnabled = value; }
136 inline ReceiptRule& WithScanEnabled(bool value) { SetScanEnabled(value); return *this;}
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 bool m_enabled;
144 bool m_enabledHasBeenSet = false;
145
146 TlsPolicy m_tlsPolicy;
147 bool m_tlsPolicyHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_recipients;
150 bool m_recipientsHasBeenSet = false;
151
153 bool m_actionsHasBeenSet = false;
154
155 bool m_scanEnabled;
156 bool m_scanEnabledHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SES
161} // namespace Aws
void SetName(Aws::String &&value)
Definition ReceiptRule.h:63
ReceiptRule & AddRecipients(const Aws::String &value)
ReceiptRule & WithName(const char *value)
Definition ReceiptRule.h:67
ReceiptRule & WithTlsPolicy(const TlsPolicy &value)
Definition ReceiptRule.h:92
ReceiptRule & AddActions(ReceiptAction &&value)
void SetRecipients(Aws::Vector< Aws::String > &&value)
ReceiptRule & AddRecipients(const char *value)
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)
ReceiptRule & WithName(const Aws::String &value)
Definition ReceiptRule.h:65
ReceiptRule & WithActions(Aws::Vector< ReceiptAction > &&value)
ReceiptRule & AddRecipients(Aws::String &&value)
void SetTlsPolicy(TlsPolicy &&value)
Definition ReceiptRule.h:91
const Aws::Vector< ReceiptAction > & GetActions() const
ReceiptRule & WithRecipients(const Aws::Vector< Aws::String > &value)
void SetTlsPolicy(const TlsPolicy &value)
Definition ReceiptRule.h:90
ReceiptRule & WithName(Aws::String &&value)
Definition ReceiptRule.h:66
ReceiptRule & WithScanEnabled(bool value)
ReceiptRule & WithActions(const Aws::Vector< ReceiptAction > &value)
const TlsPolicy & GetTlsPolicy() const
Definition ReceiptRule.h:88
ReceiptRule & WithRecipients(Aws::Vector< Aws::String > &&value)
ReceiptRule & AddActions(const ReceiptAction &value)
const Aws::String & GetName() const
Definition ReceiptRule.h:60
ReceiptRule & WithTlsPolicy(TlsPolicy &&value)
Definition ReceiptRule.h:93
void SetName(const Aws::String &value)
Definition ReceiptRule.h:62
AWS_SES_API ReceiptRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRecipients(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetRecipients() const
void SetName(const char *value)
Definition ReceiptRule.h:64
void SetEnabled(bool value)
Definition ReceiptRule.h:77
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetActions(const Aws::Vector< ReceiptAction > &value)
void SetScanEnabled(bool value)
ReceiptRule & WithEnabled(bool value)
Definition ReceiptRule.h:78
void SetActions(Aws::Vector< ReceiptAction > &&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