AWS SDK for C++  1.8.128
AWS SDK for C++
UpdateReceiptRuleRequest.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 "UpdateReceiptRule"; }
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 UpdateReceiptRuleRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
75 
79  inline UpdateReceiptRuleRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
80 
84  inline UpdateReceiptRuleRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
85 
86 
90  inline const ReceiptRule& GetRule() const{ return m_rule; }
91 
95  inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
96 
100  inline void SetRule(const ReceiptRule& value) { m_ruleHasBeenSet = true; m_rule = value; }
101 
105  inline void SetRule(ReceiptRule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
106 
110  inline UpdateReceiptRuleRequest& WithRule(const ReceiptRule& value) { SetRule(value); return *this;}
111 
115  inline UpdateReceiptRuleRequest& WithRule(ReceiptRule&& value) { SetRule(std::move(value)); return *this;}
116 
117  private:
118 
119  Aws::String m_ruleSetName;
120  bool m_ruleSetNameHasBeenSet;
121 
122  ReceiptRule m_rule;
123  bool m_ruleHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace SES
128 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::UpdateReceiptRuleRequest::SetRule
void SetRule(ReceiptRule &&value)
Definition: UpdateReceiptRuleRequest.h:105
Aws::SES::Model::UpdateReceiptRuleRequest::RuleHasBeenSet
bool RuleHasBeenSet() const
Definition: UpdateReceiptRuleRequest.h:95
Aws::SES::Model::UpdateReceiptRuleRequest::WithRule
UpdateReceiptRuleRequest & WithRule(ReceiptRule &&value)
Definition: UpdateReceiptRuleRequest.h:115
Aws::SES::Model::UpdateReceiptRuleRequest::SetRuleSetName
void SetRuleSetName(Aws::String &&value)
Definition: UpdateReceiptRuleRequest.h:64
Aws::SES::Model::UpdateReceiptRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateReceiptRuleRequest.h:37
Aws::SES::Model::UpdateReceiptRuleRequest::RuleSetNameHasBeenSet
bool RuleSetNameHasBeenSet() const
Definition: UpdateReceiptRuleRequest.h:54
Aws::SES::Model::UpdateReceiptRuleRequest::SetRuleSetName
void SetRuleSetName(const char *value)
Definition: UpdateReceiptRuleRequest.h:69
Aws::SES::Model::ReceiptRule
Definition: ReceiptRule.h:42
SESRequest.h
ReceiptRule.h
Aws::SES::Model::UpdateReceiptRuleRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::SES::Model::UpdateReceiptRuleRequest::WithRuleSetName
UpdateReceiptRuleRequest & WithRuleSetName(Aws::String &&value)
Definition: UpdateReceiptRuleRequest.h:79
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::UpdateReceiptRuleRequest::GetRuleSetName
const Aws::String & GetRuleSetName() const
Definition: UpdateReceiptRuleRequest.h:49
Aws::SES::Model::UpdateReceiptRuleRequest::WithRule
UpdateReceiptRuleRequest & WithRule(const ReceiptRule &value)
Definition: UpdateReceiptRuleRequest.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::UpdateReceiptRuleRequest::UpdateReceiptRuleRequest
UpdateReceiptRuleRequest()
Aws::SES::Model::UpdateReceiptRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::Model::UpdateReceiptRuleRequest::SetRuleSetName
void SetRuleSetName(const Aws::String &value)
Definition: UpdateReceiptRuleRequest.h:59
Aws::SES::Model::UpdateReceiptRuleRequest::GetRule
const ReceiptRule & GetRule() const
Definition: UpdateReceiptRuleRequest.h:90
Aws::SES::Model::UpdateReceiptRuleRequest::SetRule
void SetRule(const ReceiptRule &value)
Definition: UpdateReceiptRuleRequest.h:100
Aws::SES::Model::UpdateReceiptRuleRequest
Definition: UpdateReceiptRuleRequest.h:29
Aws::SES::Model::UpdateReceiptRuleRequest::WithRuleSetName
UpdateReceiptRuleRequest & WithRuleSetName(const char *value)
Definition: UpdateReceiptRuleRequest.h:84
Aws::SES::Model::UpdateReceiptRuleRequest::WithRuleSetName
UpdateReceiptRuleRequest & WithRuleSetName(const Aws::String &value)
Definition: UpdateReceiptRuleRequest.h:74