AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateRuleSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mailmanager/MailManagerRequest.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/Rule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MailManager {
17namespace Model {
18
22 public:
23 AWS_MAILMANAGER_API UpdateRuleSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleSet"; }
30
31 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
40 inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; }
41 template <typename RuleSetIdT = Aws::String>
42 void SetRuleSetId(RuleSetIdT&& value) {
43 m_ruleSetIdHasBeenSet = true;
44 m_ruleSetId = std::forward<RuleSetIdT>(value);
45 }
46 template <typename RuleSetIdT = Aws::String>
47 UpdateRuleSetRequest& WithRuleSetId(RuleSetIdT&& value) {
48 SetRuleSetId(std::forward<RuleSetIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
58 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
59 template <typename RuleSetNameT = Aws::String>
60 void SetRuleSetName(RuleSetNameT&& value) {
61 m_ruleSetNameHasBeenSet = true;
62 m_ruleSetName = std::forward<RuleSetNameT>(value);
63 }
64 template <typename RuleSetNameT = Aws::String>
65 UpdateRuleSetRequest& WithRuleSetName(RuleSetNameT&& value) {
66 SetRuleSetName(std::forward<RuleSetNameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
77 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
78 template <typename RulesT = Aws::Vector<Rule>>
79 void SetRules(RulesT&& value) {
80 m_rulesHasBeenSet = true;
81 m_rules = std::forward<RulesT>(value);
82 }
83 template <typename RulesT = Aws::Vector<Rule>>
85 SetRules(std::forward<RulesT>(value));
86 return *this;
87 }
88 template <typename RulesT = Rule>
89 UpdateRuleSetRequest& AddRules(RulesT&& value) {
90 m_rulesHasBeenSet = true;
91 m_rules.emplace_back(std::forward<RulesT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_ruleSetId;
97
98 Aws::String m_ruleSetName;
99
100 Aws::Vector<Rule> m_rules;
101 bool m_ruleSetIdHasBeenSet = false;
102 bool m_ruleSetNameHasBeenSet = false;
103 bool m_rulesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace MailManager
108} // namespace Aws
const Aws::Vector< Rule > & GetRules() const
UpdateRuleSetRequest & AddRules(RulesT &&value)
UpdateRuleSetRequest & WithRuleSetName(RuleSetNameT &&value)
UpdateRuleSetRequest & WithRuleSetId(RuleSetIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API UpdateRuleSetRequest()=default
UpdateRuleSetRequest & WithRules(RulesT &&value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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