AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateRuleSetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mailmanager/MailManagerRequest.h>
11#include <aws/mailmanager/MailManager_EXPORTS.h>
12#include <aws/mailmanager/model/Rule.h>
13#include <aws/mailmanager/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MailManager {
19namespace Model {
20
24 public:
25 AWS_MAILMANAGER_API CreateRuleSetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateRuleSet"; }
32
33 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
50 CreateRuleSetRequest& WithClientToken(ClientTokenT&& value) {
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
61 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
62 template <typename RuleSetNameT = Aws::String>
63 void SetRuleSetName(RuleSetNameT&& value) {
64 m_ruleSetNameHasBeenSet = true;
65 m_ruleSetName = std::forward<RuleSetNameT>(value);
66 }
67 template <typename RuleSetNameT = Aws::String>
68 CreateRuleSetRequest& WithRuleSetName(RuleSetNameT&& value) {
69 SetRuleSetName(std::forward<RuleSetNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
79 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
80 template <typename RulesT = Aws::Vector<Rule>>
81 void SetRules(RulesT&& value) {
82 m_rulesHasBeenSet = true;
83 m_rules = std::forward<RulesT>(value);
84 }
85 template <typename RulesT = Aws::Vector<Rule>>
87 SetRules(std::forward<RulesT>(value));
88 return *this;
89 }
90 template <typename RulesT = Rule>
91 CreateRuleSetRequest& AddRules(RulesT&& value) {
92 m_rulesHasBeenSet = true;
93 m_rules.emplace_back(std::forward<RulesT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Vector<Tag>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsT = Tag>
117 m_tagsHasBeenSet = true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
119 return *this;
120 }
122 private:
124
125 Aws::String m_ruleSetName;
126
127 Aws::Vector<Rule> m_rules;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_clientTokenHasBeenSet = true;
131 bool m_ruleSetNameHasBeenSet = false;
132 bool m_rulesHasBeenSet = false;
133 bool m_tagsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace MailManager
138} // namespace Aws
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateRuleSetRequest & WithTags(TagsT &&value)
AWS_MAILMANAGER_API CreateRuleSetRequest()=default
CreateRuleSetRequest & WithRules(RulesT &&value)
CreateRuleSetRequest & AddRules(RulesT &&value)
CreateRuleSetRequest & WithClientToken(ClientTokenT &&value)
CreateRuleSetRequest & AddTags(TagsT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Rule > & GetRules() const
CreateRuleSetRequest & WithRuleSetName(RuleSetNameT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
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