AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RuleSetIdT = Aws::String>
46 void SetRuleSetId(RuleSetIdT&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::forward<RuleSetIdT>(value); }
47 template<typename RuleSetIdT = Aws::String>
48 UpdateRuleSetRequest& WithRuleSetId(RuleSetIdT&& value) { SetRuleSetId(std::forward<RuleSetIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
56 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
57 template<typename RuleSetNameT = Aws::String>
58 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
59 template<typename RuleSetNameT = Aws::String>
60 UpdateRuleSetRequest& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
62
64
68 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
69 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
70 template<typename RulesT = Aws::Vector<Rule>>
71 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
72 template<typename RulesT = Aws::Vector<Rule>>
73 UpdateRuleSetRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
74 template<typename RulesT = Rule>
75 UpdateRuleSetRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
77 private:
78
79 Aws::String m_ruleSetId;
80 bool m_ruleSetIdHasBeenSet = false;
81
82 Aws::String m_ruleSetName;
83 bool m_ruleSetNameHasBeenSet = false;
84
85 Aws::Vector<Rule> m_rules;
86 bool m_rulesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MailManager
91} // 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