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>
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>
75 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
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>>
104 template<
typename RecipientsT = Aws::String>
105 ReceiptRule&
AddRecipients(RecipientsT&& value) { m_recipientsHasBeenSet =
true; m_recipients.emplace_back(std::forward<RecipientsT>(value));
return *
this; }
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>>
119 template<
typename ActionsT = ReceiptAction>
120 ReceiptRule&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
130 inline void SetScanEnabled(
bool value) { m_scanEnabledHasBeenSet =
true; m_scanEnabled = value; }
136 bool m_nameHasBeenSet =
false;
138 bool m_enabled{
false};
139 bool m_enabledHasBeenSet =
false;
142 bool m_tlsPolicyHasBeenSet =
false;
145 bool m_recipientsHasBeenSet =
false;
148 bool m_actionsHasBeenSet =
false;
150 bool m_scanEnabled{
false};
151 bool m_scanEnabledHasBeenSet =
false;
void SetName(NameT &&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)
bool ActionsHasBeenSet() const
TlsPolicy GetTlsPolicy() const
const Aws::Vector< ReceiptAction > & GetActions() const
ReceiptRule & AddRecipients(RecipientsT &&value)
ReceiptRule & WithName(NameT &&value)
bool NameHasBeenSet() const
bool RecipientsHasBeenSet() const
ReceiptRule & WithScanEnabled(bool value)
bool GetScanEnabled() const
bool EnabledHasBeenSet() const
const Aws::String & GetName() const
void SetActions(ActionsT &&value)
AWS_SES_API ReceiptRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTlsPolicy(TlsPolicy value)
bool TlsPolicyHasBeenSet() const
const Aws::Vector< Aws::String > & GetRecipients() const
void SetEnabled(bool value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ScanEnabledHasBeenSet() const
ReceiptRule & WithRecipients(RecipientsT &&value)
void SetRecipients(RecipientsT &&value)
ReceiptRule & WithTlsPolicy(TlsPolicy value)
void SetScanEnabled(bool value)
ReceiptRule & WithEnabled(bool value)
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