AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAutomationRuleV2Request.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/SecurityHubRequest.h>
12#include <aws/securityhub/SecurityHub_EXPORTS.h>
13#include <aws/securityhub/model/AutomationRulesActionV2.h>
14#include <aws/securityhub/model/Criteria.h>
15#include <aws/securityhub/model/RuleStatusV2.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SecurityHub {
21namespace Model {
22
26 public:
27 AWS_SECURITYHUB_API CreateAutomationRuleV2Request() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAutomationRuleV2"; }
34
35 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRuleName() const { return m_ruleName; }
42 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
43 template <typename RuleNameT = Aws::String>
44 void SetRuleName(RuleNameT&& value) {
45 m_ruleNameHasBeenSet = true;
46 m_ruleName = std::forward<RuleNameT>(value);
47 }
48 template <typename RuleNameT = Aws::String>
50 SetRuleName(std::forward<RuleNameT>(value));
51 return *this;
52 }
54
56
59 inline RuleStatusV2 GetRuleStatus() const { return m_ruleStatus; }
60 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
61 inline void SetRuleStatus(RuleStatusV2 value) {
62 m_ruleStatusHasBeenSet = true;
63 m_ruleStatus = value;
64 }
66 SetRuleStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline double GetRuleOrder() const { return m_ruleOrder; }
94 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
95 inline void SetRuleOrder(double value) {
96 m_ruleOrderHasBeenSet = true;
97 m_ruleOrder = value;
98 }
100 SetRuleOrder(value);
101 return *this;
102 }
104
106
109 inline const Criteria& GetCriteria() const { return m_criteria; }
110 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
111 template <typename CriteriaT = Criteria>
112 void SetCriteria(CriteriaT&& value) {
113 m_criteriaHasBeenSet = true;
114 m_criteria = std::forward<CriteriaT>(value);
115 }
116 template <typename CriteriaT = Criteria>
118 SetCriteria(std::forward<CriteriaT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<AutomationRulesActionV2>& GetActions() const { return m_actions; }
128 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
129 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
130 void SetActions(ActionsT&& value) {
131 m_actionsHasBeenSet = true;
132 m_actions = std::forward<ActionsT>(value);
133 }
134 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
136 SetActions(std::forward<ActionsT>(value));
137 return *this;
138 }
139 template <typename ActionsT = AutomationRulesActionV2>
141 m_actionsHasBeenSet = true;
142 m_actions.emplace_back(std::forward<ActionsT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 void SetTags(TagsT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags = std::forward<TagsT>(value);
157 }
158 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 SetTags(std::forward<TagsT>(value));
161 return *this;
162 }
163 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
164 CreateAutomationRuleV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetClientToken() const { return m_clientToken; }
176 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
177 template <typename ClientTokenT = Aws::String>
178 void SetClientToken(ClientTokenT&& value) {
179 m_clientTokenHasBeenSet = true;
180 m_clientToken = std::forward<ClientTokenT>(value);
181 }
182 template <typename ClientTokenT = Aws::String>
184 SetClientToken(std::forward<ClientTokenT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_ruleName;
190
192
193 Aws::String m_description;
194
195 double m_ruleOrder{0.0};
196
197 Criteria m_criteria;
198
200
202
204 bool m_ruleNameHasBeenSet = false;
205 bool m_ruleStatusHasBeenSet = false;
206 bool m_descriptionHasBeenSet = false;
207 bool m_ruleOrderHasBeenSet = false;
208 bool m_criteriaHasBeenSet = false;
209 bool m_actionsHasBeenSet = false;
210 bool m_tagsHasBeenSet = false;
211 bool m_clientTokenHasBeenSet = true;
212};
213
214} // namespace Model
215} // namespace SecurityHub
216} // namespace Aws
CreateAutomationRuleV2Request & WithRuleOrder(double value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SECURITYHUB_API CreateAutomationRuleV2Request()=default
CreateAutomationRuleV2Request & WithCriteria(CriteriaT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
const Aws::Vector< AutomationRulesActionV2 > & GetActions() const
CreateAutomationRuleV2Request & WithDescription(DescriptionT &&value)
CreateAutomationRuleV2Request & WithRuleName(RuleNameT &&value)
CreateAutomationRuleV2Request & WithClientToken(ClientTokenT &&value)
CreateAutomationRuleV2Request & WithActions(ActionsT &&value)
CreateAutomationRuleV2Request & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAutomationRuleV2Request & AddActions(ActionsT &&value)
CreateAutomationRuleV2Request & WithRuleStatus(RuleStatusV2 value)
CreateAutomationRuleV2Request & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector