AWS SDK for C++  1.8.182
AWS SDK for C++
ReceiptRule.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace SES
25 {
26 namespace Model
27 {
28 
42  {
43  public:
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
51 
58  inline const Aws::String& GetName() const{ return m_name; }
59 
66  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 
74  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 
82  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 
90  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 
98  inline ReceiptRule& WithName(const Aws::String& value) { SetName(value); return *this;}
99 
106  inline ReceiptRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
107 
114  inline ReceiptRule& WithName(const char* value) { SetName(value); return *this;}
115 
116 
121  inline bool GetEnabled() const{ return m_enabled; }
122 
127  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
128 
133  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
134 
139  inline ReceiptRule& WithEnabled(bool value) { SetEnabled(value); return *this;}
140 
141 
148  inline const TlsPolicy& GetTlsPolicy() const{ return m_tlsPolicy; }
149 
156  inline bool TlsPolicyHasBeenSet() const { return m_tlsPolicyHasBeenSet; }
157 
164  inline void SetTlsPolicy(const TlsPolicy& value) { m_tlsPolicyHasBeenSet = true; m_tlsPolicy = value; }
165 
172  inline void SetTlsPolicy(TlsPolicy&& value) { m_tlsPolicyHasBeenSet = true; m_tlsPolicy = std::move(value); }
173 
180  inline ReceiptRule& WithTlsPolicy(const TlsPolicy& value) { SetTlsPolicy(value); return *this;}
181 
188  inline ReceiptRule& WithTlsPolicy(TlsPolicy&& value) { SetTlsPolicy(std::move(value)); return *this;}
189 
190 
196  inline const Aws::Vector<Aws::String>& GetRecipients() const{ return m_recipients; }
197 
203  inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
204 
210  inline void SetRecipients(const Aws::Vector<Aws::String>& value) { m_recipientsHasBeenSet = true; m_recipients = value; }
211 
217  inline void SetRecipients(Aws::Vector<Aws::String>&& value) { m_recipientsHasBeenSet = true; m_recipients = std::move(value); }
218 
224  inline ReceiptRule& WithRecipients(const Aws::Vector<Aws::String>& value) { SetRecipients(value); return *this;}
225 
231  inline ReceiptRule& WithRecipients(Aws::Vector<Aws::String>&& value) { SetRecipients(std::move(value)); return *this;}
232 
238  inline ReceiptRule& AddRecipients(const Aws::String& value) { m_recipientsHasBeenSet = true; m_recipients.push_back(value); return *this; }
239 
245  inline ReceiptRule& AddRecipients(Aws::String&& value) { m_recipientsHasBeenSet = true; m_recipients.push_back(std::move(value)); return *this; }
246 
252  inline ReceiptRule& AddRecipients(const char* value) { m_recipientsHasBeenSet = true; m_recipients.push_back(value); return *this; }
253 
254 
259  inline const Aws::Vector<ReceiptAction>& GetActions() const{ return m_actions; }
260 
265  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
266 
271  inline void SetActions(const Aws::Vector<ReceiptAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
272 
277  inline void SetActions(Aws::Vector<ReceiptAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
278 
283  inline ReceiptRule& WithActions(const Aws::Vector<ReceiptAction>& value) { SetActions(value); return *this;}
284 
289  inline ReceiptRule& WithActions(Aws::Vector<ReceiptAction>&& value) { SetActions(std::move(value)); return *this;}
290 
295  inline ReceiptRule& AddActions(const ReceiptAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
296 
301  inline ReceiptRule& AddActions(ReceiptAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
302 
303 
308  inline bool GetScanEnabled() const{ return m_scanEnabled; }
309 
314  inline bool ScanEnabledHasBeenSet() const { return m_scanEnabledHasBeenSet; }
315 
320  inline void SetScanEnabled(bool value) { m_scanEnabledHasBeenSet = true; m_scanEnabled = value; }
321 
326  inline ReceiptRule& WithScanEnabled(bool value) { SetScanEnabled(value); return *this;}
327 
328  private:
329 
330  Aws::String m_name;
331  bool m_nameHasBeenSet;
332 
333  bool m_enabled;
334  bool m_enabledHasBeenSet;
335 
336  TlsPolicy m_tlsPolicy;
337  bool m_tlsPolicyHasBeenSet;
338 
339  Aws::Vector<Aws::String> m_recipients;
340  bool m_recipientsHasBeenSet;
341 
342  Aws::Vector<ReceiptAction> m_actions;
343  bool m_actionsHasBeenSet;
344 
345  bool m_scanEnabled;
346  bool m_scanEnabledHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace SES
351 } // namespace Aws
Aws::SES::Model::ReceiptRule::AddActions
ReceiptRule & AddActions(ReceiptAction &&value)
Definition: ReceiptRule.h:301
Aws::SES::Model::ReceiptRule::GetActions
const Aws::Vector< ReceiptAction > & GetActions() const
Definition: ReceiptRule.h:259
Aws::SES::Model::ReceiptRule::AddRecipients
ReceiptRule & AddRecipients(const char *value)
Definition: ReceiptRule.h:252
Aws::SES::Model::ReceiptAction
Definition: ReceiptAction.h:43
Aws::SES::Model::ReceiptRule::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: ReceiptRule.h:265
Aws::SES::Model::ReceiptRule::WithName
ReceiptRule & WithName(const Aws::String &value)
Definition: ReceiptRule.h:98
Aws::SES::Model::ReceiptRule::RecipientsHasBeenSet
bool RecipientsHasBeenSet() const
Definition: ReceiptRule.h:203
Aws::SES::Model::ReceiptRule::GetName
const Aws::String & GetName() const
Definition: ReceiptRule.h:58
Aws::SES::Model::ReceiptRule::WithName
ReceiptRule & WithName(Aws::String &&value)
Definition: ReceiptRule.h:106
Aws::SES::Model::ReceiptRule::GetTlsPolicy
const TlsPolicy & GetTlsPolicy() const
Definition: ReceiptRule.h:148
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::SES::Model::ReceiptRule::AddActions
ReceiptRule & AddActions(const ReceiptAction &value)
Definition: ReceiptRule.h:295
AWSVector.h
Aws::SES::Model::ReceiptRule::SetTlsPolicy
void SetTlsPolicy(const TlsPolicy &value)
Definition: ReceiptRule.h:164
Aws::SES::Model::ReceiptRule::WithRecipients
ReceiptRule & WithRecipients(Aws::Vector< Aws::String > &&value)
Definition: ReceiptRule.h:231
Aws::SES::Model::ReceiptRule::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ReceiptRule.h:66
Aws::SES::Model::ReceiptRule::SetName
void SetName(Aws::String &&value)
Definition: ReceiptRule.h:82
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::ReceiptRule::GetEnabled
bool GetEnabled() const
Definition: ReceiptRule.h:121
Aws::SES::Model::ReceiptRule::WithEnabled
ReceiptRule & WithEnabled(bool value)
Definition: ReceiptRule.h:139
Aws::SES::Model::ReceiptRule::WithActions
ReceiptRule & WithActions(const Aws::Vector< ReceiptAction > &value)
Definition: ReceiptRule.h:283
Aws::SES::Model::ReceiptRule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::ReceiptRule
Definition: ReceiptRule.h:42
Aws::SES::Model::ReceiptRule::ScanEnabledHasBeenSet
bool ScanEnabledHasBeenSet() const
Definition: ReceiptRule.h:314
TlsPolicy.h
Aws::SES::Model::ReceiptRule::AddRecipients
ReceiptRule & AddRecipients(Aws::String &&value)
Definition: ReceiptRule.h:245
Aws::SES::Model::ReceiptRule::WithName
ReceiptRule & WithName(const char *value)
Definition: ReceiptRule.h:114
Aws::SES::Model::ReceiptRule::SetTlsPolicy
void SetTlsPolicy(TlsPolicy &&value)
Definition: ReceiptRule.h:172
Aws::SES::Model::ReceiptRule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::ReceiptRule::SetActions
void SetActions(const Aws::Vector< ReceiptAction > &value)
Definition: ReceiptRule.h:271
Aws::SES::Model::ReceiptRule::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ReceiptRule.h:127
Aws::SES::Model::ReceiptRule::SetEnabled
void SetEnabled(bool value)
Definition: ReceiptRule.h:133
Aws::SES::Model::ReceiptRule::WithScanEnabled
ReceiptRule & WithScanEnabled(bool value)
Definition: ReceiptRule.h:326
Aws::SES::Model::TlsPolicy
TlsPolicy
Definition: TlsPolicy.h:17
AWSString.h
Aws::SES::Model::ReceiptRule::TlsPolicyHasBeenSet
bool TlsPolicyHasBeenSet() const
Definition: ReceiptRule.h:156
SES_EXPORTS.h
Aws::SES::Model::ReceiptRule::WithActions
ReceiptRule & WithActions(Aws::Vector< ReceiptAction > &&value)
Definition: ReceiptRule.h:289
Aws::SES::Model::ReceiptRule::WithTlsPolicy
ReceiptRule & WithTlsPolicy(TlsPolicy &&value)
Definition: ReceiptRule.h:188
Aws::SES::Model::ReceiptRule::SetName
void SetName(const char *value)
Definition: ReceiptRule.h:90
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::ReceiptRule::SetActions
void SetActions(Aws::Vector< ReceiptAction > &&value)
Definition: ReceiptRule.h:277
Aws::SES::Model::ReceiptRule::ReceiptRule
ReceiptRule()
Aws::SES::Model::ReceiptRule::SetRecipients
void SetRecipients(const Aws::Vector< Aws::String > &value)
Definition: ReceiptRule.h:210
Aws::SES::Model::ReceiptRule::GetRecipients
const Aws::Vector< Aws::String > & GetRecipients() const
Definition: ReceiptRule.h:196
Aws::SES::Model::ReceiptRule::WithRecipients
ReceiptRule & WithRecipients(const Aws::Vector< Aws::String > &value)
Definition: ReceiptRule.h:224
Aws::SES::Model::ReceiptRule::SetRecipients
void SetRecipients(Aws::Vector< Aws::String > &&value)
Definition: ReceiptRule.h:217
Aws::SES::Model::ReceiptRule::AddRecipients
ReceiptRule & AddRecipients(const Aws::String &value)
Definition: ReceiptRule.h:238
Aws
Definition: AccessManagementClient.h:15
ReceiptAction.h
Aws::SES::Model::ReceiptRule::ReceiptRule
ReceiptRule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::ReceiptRule::SetScanEnabled
void SetScanEnabled(bool value)
Definition: ReceiptRule.h:320
Aws::SES::Model::ReceiptRule::WithTlsPolicy
ReceiptRule & WithTlsPolicy(const TlsPolicy &value)
Definition: ReceiptRule.h:180
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::ReceiptRule::SetName
void SetName(const Aws::String &value)
Definition: ReceiptRule.h:74
Aws::SES::Model::ReceiptRule::operator=
ReceiptRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::ReceiptRule::GetScanEnabled
bool GetScanEnabled() const
Definition: ReceiptRule.h:308