AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreateRuleGroupRequest.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/network-firewall/NetworkFirewallRequest.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/EncryptionConfiguration.h>
12#include <aws/network-firewall/model/FirewallRuleGroup.h>
13#include <aws/network-firewall/model/IpsRuleGroup.h>
14#include <aws/network-firewall/model/RuleGroup.h>
15#include <aws/network-firewall/model/RuleGroupType.h>
16#include <aws/network-firewall/model/SourceMetadata.h>
17#include <aws/network-firewall/model/SummaryConfiguration.h>
18#include <aws/network-firewall/model/Tag.h>
19
20#include <utility>
21
22namespace Aws {
23namespace NetworkFirewall {
24namespace Model {
25
29 public:
30 AWS_NETWORKFIREWALL_API CreateRuleGroupRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateRuleGroup"; }
37
38 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
39
40 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
43
47 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
48 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
49 template <typename RuleGroupNameT = Aws::String>
50 void SetRuleGroupName(RuleGroupNameT&& value) {
51 m_ruleGroupNameHasBeenSet = true;
52 m_ruleGroupName = std::forward<RuleGroupNameT>(value);
53 }
54 template <typename RuleGroupNameT = Aws::String>
55 CreateRuleGroupRequest& WithRuleGroupName(RuleGroupNameT&& value) {
56 SetRuleGroupName(std::forward<RuleGroupNameT>(value));
57 return *this;
58 }
60
62
67 inline const RuleGroup& GetRuleGroup() const { return m_ruleGroup; }
68 inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
69 template <typename RuleGroupT = RuleGroup>
70 void SetRuleGroup(RuleGroupT&& value) {
71 m_ruleGroupHasBeenSet = true;
72 m_ruleGroup = std::forward<RuleGroupT>(value);
73 }
74 template <typename RuleGroupT = RuleGroup>
76 SetRuleGroup(std::forward<RuleGroupT>(value));
77 return *this;
78 }
80
82
86 inline const FirewallRuleGroup& GetFirewallRuleGroup() const { return m_firewallRuleGroup; }
87 inline bool FirewallRuleGroupHasBeenSet() const { return m_firewallRuleGroupHasBeenSet; }
88 template <typename FirewallRuleGroupT = FirewallRuleGroup>
89 void SetFirewallRuleGroup(FirewallRuleGroupT&& value) {
90 m_firewallRuleGroupHasBeenSet = true;
91 m_firewallRuleGroup = std::forward<FirewallRuleGroupT>(value);
92 }
93 template <typename FirewallRuleGroupT = FirewallRuleGroup>
94 CreateRuleGroupRequest& WithFirewallRuleGroup(FirewallRuleGroupT&& value) {
95 SetFirewallRuleGroup(std::forward<FirewallRuleGroupT>(value));
96 return *this;
97 }
99
101
105 inline const IpsRuleGroup& GetIpsRuleGroup() const { return m_ipsRuleGroup; }
106 inline bool IpsRuleGroupHasBeenSet() const { return m_ipsRuleGroupHasBeenSet; }
107 template <typename IpsRuleGroupT = IpsRuleGroup>
108 void SetIpsRuleGroup(IpsRuleGroupT&& value) {
109 m_ipsRuleGroupHasBeenSet = true;
110 m_ipsRuleGroup = std::forward<IpsRuleGroupT>(value);
111 }
112 template <typename IpsRuleGroupT = IpsRuleGroup>
113 CreateRuleGroupRequest& WithIpsRuleGroup(IpsRuleGroupT&& value) {
114 SetIpsRuleGroup(std::forward<IpsRuleGroupT>(value));
115 return *this;
116 }
118
120
130 inline const Aws::String& GetRules() const { return m_rules; }
131 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
132 template <typename RulesT = Aws::String>
133 void SetRules(RulesT&& value) {
134 m_rulesHasBeenSet = true;
135 m_rules = std::forward<RulesT>(value);
136 }
137 template <typename RulesT = Aws::String>
139 SetRules(std::forward<RulesT>(value));
140 return *this;
141 }
143
145
154 inline RuleGroupType GetType() const { return m_type; }
155 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
156 inline void SetType(RuleGroupType value) {
157 m_typeHasBeenSet = true;
158 m_type = value;
159 }
161 SetType(value);
162 return *this;
163 }
165
167
170 inline const Aws::String& GetDescription() const { return m_description; }
171 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
172 template <typename DescriptionT = Aws::String>
173 void SetDescription(DescriptionT&& value) {
174 m_descriptionHasBeenSet = true;
175 m_description = std::forward<DescriptionT>(value);
176 }
177 template <typename DescriptionT = Aws::String>
179 SetDescription(std::forward<DescriptionT>(value));
180 return *this;
181 }
183
185
213 inline int GetCapacity() const { return m_capacity; }
214 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
215 inline void SetCapacity(int value) {
216 m_capacityHasBeenSet = true;
217 m_capacity = value;
218 }
220 SetCapacity(value);
221 return *this;
222 }
224
226
229 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template <typename TagsT = Aws::Vector<Tag>>
232 void SetTags(TagsT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags = std::forward<TagsT>(value);
235 }
236 template <typename TagsT = Aws::Vector<Tag>>
238 SetTags(std::forward<TagsT>(value));
239 return *this;
240 }
241 template <typename TagsT = Tag>
243 m_tagsHasBeenSet = true;
244 m_tags.emplace_back(std::forward<TagsT>(value));
245 return *this;
246 }
248
250
261 inline bool GetDryRun() const { return m_dryRun; }
262 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
263 inline void SetDryRun(bool value) {
264 m_dryRunHasBeenSet = true;
265 m_dryRun = value;
266 }
267 inline CreateRuleGroupRequest& WithDryRun(bool value) {
268 SetDryRun(value);
269 return *this;
270 }
272
274
278 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
279 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
280 template <typename EncryptionConfigurationT = EncryptionConfiguration>
281 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
282 m_encryptionConfigurationHasBeenSet = true;
283 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
284 }
285 template <typename EncryptionConfigurationT = EncryptionConfiguration>
286 CreateRuleGroupRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
287 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
288 return *this;
289 }
291
293
298 inline const SourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
299 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
300 template <typename SourceMetadataT = SourceMetadata>
301 void SetSourceMetadata(SourceMetadataT&& value) {
302 m_sourceMetadataHasBeenSet = true;
303 m_sourceMetadata = std::forward<SourceMetadataT>(value);
304 }
305 template <typename SourceMetadataT = SourceMetadata>
306 CreateRuleGroupRequest& WithSourceMetadata(SourceMetadataT&& value) {
307 SetSourceMetadata(std::forward<SourceMetadataT>(value));
308 return *this;
309 }
311
313
320 inline bool GetAnalyzeRuleGroup() const { return m_analyzeRuleGroup; }
321 inline bool AnalyzeRuleGroupHasBeenSet() const { return m_analyzeRuleGroupHasBeenSet; }
322 inline void SetAnalyzeRuleGroup(bool value) {
323 m_analyzeRuleGroupHasBeenSet = true;
324 m_analyzeRuleGroup = value;
325 }
327 SetAnalyzeRuleGroup(value);
328 return *this;
329 }
331
333
340 inline const SummaryConfiguration& GetSummaryConfiguration() const { return m_summaryConfiguration; }
341 inline bool SummaryConfigurationHasBeenSet() const { return m_summaryConfigurationHasBeenSet; }
342 template <typename SummaryConfigurationT = SummaryConfiguration>
343 void SetSummaryConfiguration(SummaryConfigurationT&& value) {
344 m_summaryConfigurationHasBeenSet = true;
345 m_summaryConfiguration = std::forward<SummaryConfigurationT>(value);
346 }
347 template <typename SummaryConfigurationT = SummaryConfiguration>
348 CreateRuleGroupRequest& WithSummaryConfiguration(SummaryConfigurationT&& value) {
349 SetSummaryConfiguration(std::forward<SummaryConfigurationT>(value));
350 return *this;
351 }
353 private:
354 Aws::String m_ruleGroupName;
355
356 RuleGroup m_ruleGroup;
357
358 FirewallRuleGroup m_firewallRuleGroup;
359
360 IpsRuleGroup m_ipsRuleGroup;
361
362 Aws::String m_rules;
363
365
366 Aws::String m_description;
367
368 int m_capacity{0};
369
370 Aws::Vector<Tag> m_tags;
371
372 bool m_dryRun{false};
373
374 EncryptionConfiguration m_encryptionConfiguration;
375
376 SourceMetadata m_sourceMetadata;
377
378 bool m_analyzeRuleGroup{false};
379
380 SummaryConfiguration m_summaryConfiguration;
381 bool m_ruleGroupNameHasBeenSet = false;
382 bool m_ruleGroupHasBeenSet = false;
383 bool m_firewallRuleGroupHasBeenSet = false;
384 bool m_ipsRuleGroupHasBeenSet = false;
385 bool m_rulesHasBeenSet = false;
386 bool m_typeHasBeenSet = false;
387 bool m_descriptionHasBeenSet = false;
388 bool m_capacityHasBeenSet = false;
389 bool m_tagsHasBeenSet = false;
390 bool m_dryRunHasBeenSet = false;
391 bool m_encryptionConfigurationHasBeenSet = false;
392 bool m_sourceMetadataHasBeenSet = false;
393 bool m_analyzeRuleGroupHasBeenSet = false;
394 bool m_summaryConfigurationHasBeenSet = false;
395};
396
397} // namespace Model
398} // namespace NetworkFirewall
399} // namespace Aws
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const SummaryConfiguration & GetSummaryConfiguration() const
CreateRuleGroupRequest & WithSourceMetadata(SourceMetadataT &&value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
CreateRuleGroupRequest & WithRuleGroupName(RuleGroupNameT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_NETWORKFIREWALL_API CreateRuleGroupRequest()=default
CreateRuleGroupRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateRuleGroupRequest & WithType(RuleGroupType value)
CreateRuleGroupRequest & WithFirewallRuleGroup(FirewallRuleGroupT &&value)
CreateRuleGroupRequest & WithSummaryConfiguration(SummaryConfigurationT &&value)
CreateRuleGroupRequest & WithDescription(DescriptionT &&value)
CreateRuleGroupRequest & WithRuleGroup(RuleGroupT &&value)
CreateRuleGroupRequest & WithRules(RulesT &&value)
void SetSummaryConfiguration(SummaryConfigurationT &&value)
CreateRuleGroupRequest & WithIpsRuleGroup(IpsRuleGroupT &&value)
CreateRuleGroupRequest & WithAnalyzeRuleGroup(bool value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
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