AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
31 AWS_SES_API CreateReceiptRuleRequest() = default;
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 template<typename RuleSetNameT = Aws::String>
53 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
54 template<typename RuleSetNameT = Aws::String>
55 CreateReceiptRuleRequest& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
57
59
64 inline const Aws::String& GetAfter() const { return m_after; }
65 inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
66 template<typename AfterT = Aws::String>
67 void SetAfter(AfterT&& value) { m_afterHasBeenSet = true; m_after = std::forward<AfterT>(value); }
68 template<typename AfterT = Aws::String>
69 CreateReceiptRuleRequest& WithAfter(AfterT&& value) { SetAfter(std::forward<AfterT>(value)); return *this;}
71
73
77 inline const ReceiptRule& GetRule() const { return m_rule; }
78 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
79 template<typename RuleT = ReceiptRule>
80 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
81 template<typename RuleT = ReceiptRule>
82 CreateReceiptRuleRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
84 private:
85
86 Aws::String m_ruleSetName;
87 bool m_ruleSetNameHasBeenSet = false;
88
89 Aws::String m_after;
90 bool m_afterHasBeenSet = false;
91
92 ReceiptRule m_rule;
93 bool m_ruleHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SES
98} // 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