AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleSetRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/model/Rule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MailManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MAILMANAGER_API UpdateRuleSetRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleSet"; }
33
34 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; }
44 inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; }
45 inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; }
46 inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); }
47 inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); }
48 inline UpdateRuleSetRequest& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;}
49 inline UpdateRuleSetRequest& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;}
50 inline UpdateRuleSetRequest& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;}
52
54
57 inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
58 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
59 inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
60 inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
61 inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
62 inline UpdateRuleSetRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
63 inline UpdateRuleSetRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
64 inline UpdateRuleSetRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
66
68
72 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
73 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
74 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
75 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
76 inline UpdateRuleSetRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
77 inline UpdateRuleSetRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
78 inline UpdateRuleSetRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
79 inline UpdateRuleSetRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_ruleSetId;
84 bool m_ruleSetIdHasBeenSet = false;
85
86 Aws::String m_ruleSetName;
87 bool m_ruleSetNameHasBeenSet = false;
88
89 Aws::Vector<Rule> m_rules;
90 bool m_rulesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace MailManager
95} // namespace Aws
const Aws::Vector< Rule > & GetRules() const
UpdateRuleSetRequest & AddRules(Rule &&value)
UpdateRuleSetRequest & WithRuleSetName(Aws::String &&value)
UpdateRuleSetRequest & WithRules(const Aws::Vector< Rule > &value)
UpdateRuleSetRequest & WithRuleSetId(Aws::String &&value)
UpdateRuleSetRequest & WithRuleSetId(const char *value)
void SetRules(const Aws::Vector< Rule > &value)
virtual const char * GetServiceRequestName() const override
UpdateRuleSetRequest & WithRuleSetId(const Aws::String &value)
UpdateRuleSetRequest & WithRuleSetName(const Aws::String &value)
UpdateRuleSetRequest & WithRules(Aws::Vector< Rule > &&value)
UpdateRuleSetRequest & AddRules(const Rule &value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRuleSetRequest & WithRuleSetName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector