AWS SDK for C++

AWS SDK for C++ Version 1.11.766

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