AWS SDK for C++  1.8.128
AWS SDK for C++
CreateReceiptRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SES
16 {
17 namespace 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::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
49  inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
50 
54  inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
55 
59  inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
60 
64  inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
65 
69  inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
70 
74  inline CreateReceiptRuleRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
75 
79  inline CreateReceiptRuleRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
80 
84  inline CreateReceiptRuleRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
85 
86 
92  inline const Aws::String& GetAfter() const{ return m_after; }
93 
99  inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
100 
106  inline void SetAfter(const Aws::String& value) { m_afterHasBeenSet = true; m_after = value; }
107 
113  inline void SetAfter(Aws::String&& value) { m_afterHasBeenSet = true; m_after = std::move(value); }
114 
120  inline void SetAfter(const char* value) { m_afterHasBeenSet = true; m_after.assign(value); }
121 
127  inline CreateReceiptRuleRequest& WithAfter(const Aws::String& value) { SetAfter(value); return *this;}
128 
134  inline CreateReceiptRuleRequest& WithAfter(Aws::String&& value) { SetAfter(std::move(value)); return *this;}
135 
141  inline CreateReceiptRuleRequest& WithAfter(const char* value) { SetAfter(value); return *this;}
142 
143 
148  inline const ReceiptRule& GetRule() const{ return m_rule; }
149 
154  inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
155 
160  inline void SetRule(const ReceiptRule& value) { m_ruleHasBeenSet = true; m_rule = value; }
161 
166  inline void SetRule(ReceiptRule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
167 
172  inline CreateReceiptRuleRequest& WithRule(const ReceiptRule& value) { SetRule(value); return *this;}
173 
178  inline CreateReceiptRuleRequest& WithRule(ReceiptRule&& value) { SetRule(std::move(value)); return *this;}
179 
180  private:
181 
182  Aws::String m_ruleSetName;
183  bool m_ruleSetNameHasBeenSet;
184 
185  Aws::String m_after;
186  bool m_afterHasBeenSet;
187 
188  ReceiptRule m_rule;
189  bool m_ruleHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace SES
194 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::CreateReceiptRuleRequest::WithAfter
CreateReceiptRuleRequest & WithAfter(const char *value)
Definition: CreateReceiptRuleRequest.h:141
Aws::SES::Model::CreateReceiptRuleRequest::WithAfter
CreateReceiptRuleRequest & WithAfter(const Aws::String &value)
Definition: CreateReceiptRuleRequest.h:127
Aws::SES::Model::CreateReceiptRuleRequest::RuleHasBeenSet
bool RuleHasBeenSet() const
Definition: CreateReceiptRuleRequest.h:154
Aws::SES::Model::CreateReceiptRuleRequest::WithAfter
CreateReceiptRuleRequest & WithAfter(Aws::String &&value)
Definition: CreateReceiptRuleRequest.h:134
Aws::SES::Model::CreateReceiptRuleRequest::SetAfter
void SetAfter(const char *value)
Definition: CreateReceiptRuleRequest.h:120
Aws::SES::Model::CreateReceiptRuleRequest::SetRule
void SetRule(const ReceiptRule &value)
Definition: CreateReceiptRuleRequest.h:160
Aws::SES::Model::CreateReceiptRuleRequest::WithRuleSetName
CreateReceiptRuleRequest & WithRuleSetName(const Aws::String &value)
Definition: CreateReceiptRuleRequest.h:74
Aws::SES::Model::CreateReceiptRuleRequest::SetRuleSetName
void SetRuleSetName(const char *value)
Definition: CreateReceiptRuleRequest.h:69
Aws::SES::Model::CreateReceiptRuleRequest::SetRuleSetName
void SetRuleSetName(Aws::String &&value)
Definition: CreateReceiptRuleRequest.h:64
Aws::SES::Model::CreateReceiptRuleRequest::RuleSetNameHasBeenSet
bool RuleSetNameHasBeenSet() const
Definition: CreateReceiptRuleRequest.h:54
Aws::SES::Model::CreateReceiptRuleRequest::SetRule
void SetRule(ReceiptRule &&value)
Definition: CreateReceiptRuleRequest.h:166
Aws::SES::Model::CreateReceiptRuleRequest::SetAfter
void SetAfter(const Aws::String &value)
Definition: CreateReceiptRuleRequest.h:106
Aws::SES::Model::CreateReceiptRuleRequest::WithRule
CreateReceiptRuleRequest & WithRule(const ReceiptRule &value)
Definition: CreateReceiptRuleRequest.h:172
Aws::SES::Model::ReceiptRule
Definition: ReceiptRule.h:42
Aws::SES::Model::CreateReceiptRuleRequest::GetAfter
const Aws::String & GetAfter() const
Definition: CreateReceiptRuleRequest.h:92
Aws::SES::Model::CreateReceiptRuleRequest::SetAfter
void SetAfter(Aws::String &&value)
Definition: CreateReceiptRuleRequest.h:113
SESRequest.h
Aws::SES::Model::CreateReceiptRuleRequest::GetRule
const ReceiptRule & GetRule() const
Definition: CreateReceiptRuleRequest.h:148
ReceiptRule.h
AWSString.h
Aws::SES::Model::CreateReceiptRuleRequest::SetRuleSetName
void SetRuleSetName(const Aws::String &value)
Definition: CreateReceiptRuleRequest.h:59
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws::SES::Model::CreateReceiptRuleRequest::WithRuleSetName
CreateReceiptRuleRequest & WithRuleSetName(Aws::String &&value)
Definition: CreateReceiptRuleRequest.h:79
Aws::SES::Model::CreateReceiptRuleRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::CreateReceiptRuleRequest::CreateReceiptRuleRequest
CreateReceiptRuleRequest()
Aws::SES::Model::CreateReceiptRuleRequest::AfterHasBeenSet
bool AfterHasBeenSet() const
Definition: CreateReceiptRuleRequest.h:99
Aws::SES::Model::CreateReceiptRuleRequest::WithRuleSetName
CreateReceiptRuleRequest & WithRuleSetName(const char *value)
Definition: CreateReceiptRuleRequest.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::CreateReceiptRuleRequest::WithRule
CreateReceiptRuleRequest & WithRule(ReceiptRule &&value)
Definition: CreateReceiptRuleRequest.h:178
Aws::SES::Model::CreateReceiptRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::CreateReceiptRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateReceiptRuleRequest.h:37
Aws::SES::Model::CreateReceiptRuleRequest::GetRuleSetName
const Aws::String & GetRuleSetName() const
Definition: CreateReceiptRuleRequest.h:49
Aws::SES::Model::CreateReceiptRuleRequest
Definition: CreateReceiptRuleRequest.h:29