AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReceiptRuleRequest.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/email/SESRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/email/model/ReceiptRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SES
16{
17namespace Model
18{
19
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateReceiptRule"; }
38
39 AWS_SES_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
50 inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
51 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
52 inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
53 inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
54 inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
55 inline CreateReceiptRuleRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
56 inline CreateReceiptRuleRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
57 inline CreateReceiptRuleRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
59
61
66 inline const Aws::String& GetAfter() const{ return m_after; }
67 inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
68 inline void SetAfter(const Aws::String& value) { m_afterHasBeenSet = true; m_after = value; }
69 inline void SetAfter(Aws::String&& value) { m_afterHasBeenSet = true; m_after = std::move(value); }
70 inline void SetAfter(const char* value) { m_afterHasBeenSet = true; m_after.assign(value); }
71 inline CreateReceiptRuleRequest& WithAfter(const Aws::String& value) { SetAfter(value); return *this;}
72 inline CreateReceiptRuleRequest& WithAfter(Aws::String&& value) { SetAfter(std::move(value)); return *this;}
73 inline CreateReceiptRuleRequest& WithAfter(const char* value) { SetAfter(value); return *this;}
75
77
81 inline const ReceiptRule& GetRule() const{ return m_rule; }
82 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
83 inline void SetRule(const ReceiptRule& value) { m_ruleHasBeenSet = true; m_rule = value; }
84 inline void SetRule(ReceiptRule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
85 inline CreateReceiptRuleRequest& WithRule(const ReceiptRule& value) { SetRule(value); return *this;}
86 inline CreateReceiptRuleRequest& WithRule(ReceiptRule&& value) { SetRule(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_ruleSetName;
91 bool m_ruleSetNameHasBeenSet = false;
92
93 Aws::String m_after;
94 bool m_afterHasBeenSet = false;
95
96 ReceiptRule m_rule;
97 bool m_ruleHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SES
102} // namespace Aws
CreateReceiptRuleRequest & WithRule(ReceiptRule &&value)
CreateReceiptRuleRequest & WithRuleSetName(const Aws::String &value)
CreateReceiptRuleRequest & WithRule(const ReceiptRule &value)
CreateReceiptRuleRequest & WithAfter(const char *value)
CreateReceiptRuleRequest & WithAfter(Aws::String &&value)
CreateReceiptRuleRequest & WithRuleSetName(Aws::String &&value)
CreateReceiptRuleRequest & WithRuleSetName(const char *value)
AWS_SES_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateReceiptRuleRequest & WithAfter(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String