AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UpdateRuleGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/network-firewall/NetworkFirewallRequest.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/EncryptionConfiguration.h>
11#include <aws/network-firewall/model/FirewallRuleGroup.h>
12#include <aws/network-firewall/model/IpsRuleGroup.h>
13#include <aws/network-firewall/model/RuleGroup.h>
14#include <aws/network-firewall/model/RuleGroupType.h>
15#include <aws/network-firewall/model/SourceMetadata.h>
16#include <aws/network-firewall/model/SummaryConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace NetworkFirewall {
22namespace Model {
23
27 public:
28 AWS_NETWORKFIREWALL_API UpdateRuleGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleGroup"; }
35
36 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
37
38 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
52 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
53 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
54 template <typename UpdateTokenT = Aws::String>
55 void SetUpdateToken(UpdateTokenT&& value) {
56 m_updateTokenHasBeenSet = true;
57 m_updateToken = std::forward<UpdateTokenT>(value);
58 }
59 template <typename UpdateTokenT = Aws::String>
60 UpdateRuleGroupRequest& WithUpdateToken(UpdateTokenT&& value) {
61 SetUpdateToken(std::forward<UpdateTokenT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetRuleGroupArn() const { return m_ruleGroupArn; }
72 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
73 template <typename RuleGroupArnT = Aws::String>
74 void SetRuleGroupArn(RuleGroupArnT&& value) {
75 m_ruleGroupArnHasBeenSet = true;
76 m_ruleGroupArn = std::forward<RuleGroupArnT>(value);
77 }
78 template <typename RuleGroupArnT = Aws::String>
79 UpdateRuleGroupRequest& WithRuleGroupArn(RuleGroupArnT&& value) {
80 SetRuleGroupArn(std::forward<RuleGroupArnT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
92 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
93 template <typename RuleGroupNameT = Aws::String>
94 void SetRuleGroupName(RuleGroupNameT&& value) {
95 m_ruleGroupNameHasBeenSet = true;
96 m_ruleGroupName = std::forward<RuleGroupNameT>(value);
97 }
98 template <typename RuleGroupNameT = Aws::String>
99 UpdateRuleGroupRequest& WithRuleGroupName(RuleGroupNameT&& value) {
100 SetRuleGroupName(std::forward<RuleGroupNameT>(value));
101 return *this;
102 }
104
106
111 inline const RuleGroup& GetRuleGroup() const { return m_ruleGroup; }
112 inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
113 template <typename RuleGroupT = RuleGroup>
114 void SetRuleGroup(RuleGroupT&& value) {
115 m_ruleGroupHasBeenSet = true;
116 m_ruleGroup = std::forward<RuleGroupT>(value);
117 }
118 template <typename RuleGroupT = RuleGroup>
120 SetRuleGroup(std::forward<RuleGroupT>(value));
121 return *this;
122 }
124
126
130 inline const FirewallRuleGroup& GetFirewallRuleGroup() const { return m_firewallRuleGroup; }
131 inline bool FirewallRuleGroupHasBeenSet() const { return m_firewallRuleGroupHasBeenSet; }
132 template <typename FirewallRuleGroupT = FirewallRuleGroup>
133 void SetFirewallRuleGroup(FirewallRuleGroupT&& value) {
134 m_firewallRuleGroupHasBeenSet = true;
135 m_firewallRuleGroup = std::forward<FirewallRuleGroupT>(value);
136 }
137 template <typename FirewallRuleGroupT = FirewallRuleGroup>
138 UpdateRuleGroupRequest& WithFirewallRuleGroup(FirewallRuleGroupT&& value) {
139 SetFirewallRuleGroup(std::forward<FirewallRuleGroupT>(value));
140 return *this;
141 }
143
145
149 inline const IpsRuleGroup& GetIpsRuleGroup() const { return m_ipsRuleGroup; }
150 inline bool IpsRuleGroupHasBeenSet() const { return m_ipsRuleGroupHasBeenSet; }
151 template <typename IpsRuleGroupT = IpsRuleGroup>
152 void SetIpsRuleGroup(IpsRuleGroupT&& value) {
153 m_ipsRuleGroupHasBeenSet = true;
154 m_ipsRuleGroup = std::forward<IpsRuleGroupT>(value);
155 }
156 template <typename IpsRuleGroupT = IpsRuleGroup>
157 UpdateRuleGroupRequest& WithIpsRuleGroup(IpsRuleGroupT&& value) {
158 SetIpsRuleGroup(std::forward<IpsRuleGroupT>(value));
159 return *this;
160 }
162
164
174 inline const Aws::String& GetRules() const { return m_rules; }
175 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
176 template <typename RulesT = Aws::String>
177 void SetRules(RulesT&& value) {
178 m_rulesHasBeenSet = true;
179 m_rules = std::forward<RulesT>(value);
180 }
181 template <typename RulesT = Aws::String>
183 SetRules(std::forward<RulesT>(value));
184 return *this;
185 }
187
189
199 inline RuleGroupType GetType() const { return m_type; }
200 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
201 inline void SetType(RuleGroupType value) {
202 m_typeHasBeenSet = true;
203 m_type = value;
204 }
206 SetType(value);
207 return *this;
208 }
210
212
215 inline const Aws::String& GetDescription() const { return m_description; }
216 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
217 template <typename DescriptionT = Aws::String>
218 void SetDescription(DescriptionT&& value) {
219 m_descriptionHasBeenSet = true;
220 m_description = std::forward<DescriptionT>(value);
221 }
222 template <typename DescriptionT = Aws::String>
224 SetDescription(std::forward<DescriptionT>(value));
225 return *this;
226 }
228
230
241 inline bool GetDryRun() const { return m_dryRun; }
242 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
243 inline void SetDryRun(bool value) {
244 m_dryRunHasBeenSet = true;
245 m_dryRun = value;
246 }
247 inline UpdateRuleGroupRequest& WithDryRun(bool value) {
248 SetDryRun(value);
249 return *this;
250 }
252
254
258 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
259 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
260 template <typename EncryptionConfigurationT = EncryptionConfiguration>
261 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
262 m_encryptionConfigurationHasBeenSet = true;
263 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
264 }
265 template <typename EncryptionConfigurationT = EncryptionConfiguration>
266 UpdateRuleGroupRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
267 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
268 return *this;
269 }
271
273
278 inline const SourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
279 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
280 template <typename SourceMetadataT = SourceMetadata>
281 void SetSourceMetadata(SourceMetadataT&& value) {
282 m_sourceMetadataHasBeenSet = true;
283 m_sourceMetadata = std::forward<SourceMetadataT>(value);
284 }
285 template <typename SourceMetadataT = SourceMetadata>
286 UpdateRuleGroupRequest& WithSourceMetadata(SourceMetadataT&& value) {
287 SetSourceMetadata(std::forward<SourceMetadataT>(value));
288 return *this;
289 }
291
293
300 inline bool GetAnalyzeRuleGroup() const { return m_analyzeRuleGroup; }
301 inline bool AnalyzeRuleGroupHasBeenSet() const { return m_analyzeRuleGroupHasBeenSet; }
302 inline void SetAnalyzeRuleGroup(bool value) {
303 m_analyzeRuleGroupHasBeenSet = true;
304 m_analyzeRuleGroup = value;
305 }
307 SetAnalyzeRuleGroup(value);
308 return *this;
309 }
311
313
317 inline const SummaryConfiguration& GetSummaryConfiguration() const { return m_summaryConfiguration; }
318 inline bool SummaryConfigurationHasBeenSet() const { return m_summaryConfigurationHasBeenSet; }
319 template <typename SummaryConfigurationT = SummaryConfiguration>
320 void SetSummaryConfiguration(SummaryConfigurationT&& value) {
321 m_summaryConfigurationHasBeenSet = true;
322 m_summaryConfiguration = std::forward<SummaryConfigurationT>(value);
323 }
324 template <typename SummaryConfigurationT = SummaryConfiguration>
325 UpdateRuleGroupRequest& WithSummaryConfiguration(SummaryConfigurationT&& value) {
326 SetSummaryConfiguration(std::forward<SummaryConfigurationT>(value));
327 return *this;
328 }
330 private:
331 Aws::String m_updateToken;
332
333 Aws::String m_ruleGroupArn;
334
335 Aws::String m_ruleGroupName;
336
337 RuleGroup m_ruleGroup;
338
339 FirewallRuleGroup m_firewallRuleGroup;
340
341 IpsRuleGroup m_ipsRuleGroup;
342
343 Aws::String m_rules;
344
346
347 Aws::String m_description;
348
349 bool m_dryRun{false};
350
351 EncryptionConfiguration m_encryptionConfiguration;
352
353 SourceMetadata m_sourceMetadata;
354
355 bool m_analyzeRuleGroup{false};
356
357 SummaryConfiguration m_summaryConfiguration;
358 bool m_updateTokenHasBeenSet = false;
359 bool m_ruleGroupArnHasBeenSet = false;
360 bool m_ruleGroupNameHasBeenSet = false;
361 bool m_ruleGroupHasBeenSet = false;
362 bool m_firewallRuleGroupHasBeenSet = false;
363 bool m_ipsRuleGroupHasBeenSet = false;
364 bool m_rulesHasBeenSet = false;
365 bool m_typeHasBeenSet = false;
366 bool m_descriptionHasBeenSet = false;
367 bool m_dryRunHasBeenSet = false;
368 bool m_encryptionConfigurationHasBeenSet = false;
369 bool m_sourceMetadataHasBeenSet = false;
370 bool m_analyzeRuleGroupHasBeenSet = false;
371 bool m_summaryConfigurationHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace NetworkFirewall
376} // namespace Aws
UpdateRuleGroupRequest & WithRuleGroupName(RuleGroupNameT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRuleGroupRequest & WithAnalyzeRuleGroup(bool value)
UpdateRuleGroupRequest & WithRules(RulesT &&value)
UpdateRuleGroupRequest & WithDescription(DescriptionT &&value)
UpdateRuleGroupRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetSummaryConfiguration(SummaryConfigurationT &&value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
UpdateRuleGroupRequest & WithUpdateToken(UpdateTokenT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
virtual const char * GetServiceRequestName() const override
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
UpdateRuleGroupRequest & WithRuleGroupArn(RuleGroupArnT &&value)
UpdateRuleGroupRequest & WithIpsRuleGroup(IpsRuleGroupT &&value)
UpdateRuleGroupRequest & WithSourceMetadata(SourceMetadataT &&value)
UpdateRuleGroupRequest & WithSummaryConfiguration(SummaryConfigurationT &&value)
UpdateRuleGroupRequest & WithRuleGroup(RuleGroupT &&value)
AWS_NETWORKFIREWALL_API UpdateRuleGroupRequest()=default
UpdateRuleGroupRequest & WithType(RuleGroupType value)
UpdateRuleGroupRequest & WithFirewallRuleGroup(FirewallRuleGroupT &&value)
const SummaryConfiguration & GetSummaryConfiguration() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String