AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleGroupRequest.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/NetworkFirewallRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-firewall/model/RuleGroup.h>
11#include <aws/network-firewall/model/RuleGroupType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/network-firewall/model/EncryptionConfiguration.h>
14#include <aws/network-firewall/model/SourceMetadata.h>
15#include <aws/network-firewall/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace NetworkFirewall
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_NETWORKFIREWALL_API CreateRuleGroupRequest();
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
42
44
48 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
49 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
50 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
51 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
52 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
53 inline CreateRuleGroupRequest& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
54 inline CreateRuleGroupRequest& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
55 inline CreateRuleGroupRequest& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
57
59
64 inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
65 inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
66 inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = value; }
67 inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = std::move(value); }
68 inline CreateRuleGroupRequest& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
69 inline CreateRuleGroupRequest& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
71
73
83 inline const Aws::String& GetRules() const{ return m_rules; }
84 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
85 inline void SetRules(const Aws::String& value) { m_rulesHasBeenSet = true; m_rules = value; }
86 inline void SetRules(Aws::String&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
87 inline void SetRules(const char* value) { m_rulesHasBeenSet = true; m_rules.assign(value); }
88 inline CreateRuleGroupRequest& WithRules(const Aws::String& value) { SetRules(value); return *this;}
89 inline CreateRuleGroupRequest& WithRules(Aws::String&& value) { SetRules(std::move(value)); return *this;}
90 inline CreateRuleGroupRequest& WithRules(const char* value) { SetRules(value); return *this;}
92
94
99 inline const RuleGroupType& GetType() const{ return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
102 inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 inline CreateRuleGroupRequest& WithType(const RuleGroupType& value) { SetType(value); return *this;}
104 inline CreateRuleGroupRequest& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetDescription() const{ return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
114 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 inline CreateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 inline CreateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 inline CreateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120
122
150 inline int GetCapacity() const{ return m_capacity; }
151 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
152 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
153 inline CreateRuleGroupRequest& WithCapacity(int value) { SetCapacity(value); return *this;}
155
157
160 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
161 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
162 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
163 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
164 inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
165 inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
166 inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
167 inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
169
171
182 inline bool GetDryRun() const{ return m_dryRun; }
183 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
184 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
185 inline CreateRuleGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
187
189
193 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
194 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
195 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
196 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
200
202
207 inline const SourceMetadata& GetSourceMetadata() const{ return m_sourceMetadata; }
208 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
209 inline void SetSourceMetadata(const SourceMetadata& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = value; }
210 inline void SetSourceMetadata(SourceMetadata&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::move(value); }
211 inline CreateRuleGroupRequest& WithSourceMetadata(const SourceMetadata& value) { SetSourceMetadata(value); return *this;}
212 inline CreateRuleGroupRequest& WithSourceMetadata(SourceMetadata&& value) { SetSourceMetadata(std::move(value)); return *this;}
214
216
223 inline bool GetAnalyzeRuleGroup() const{ return m_analyzeRuleGroup; }
224 inline bool AnalyzeRuleGroupHasBeenSet() const { return m_analyzeRuleGroupHasBeenSet; }
225 inline void SetAnalyzeRuleGroup(bool value) { m_analyzeRuleGroupHasBeenSet = true; m_analyzeRuleGroup = value; }
226 inline CreateRuleGroupRequest& WithAnalyzeRuleGroup(bool value) { SetAnalyzeRuleGroup(value); return *this;}
228 private:
229
230 Aws::String m_ruleGroupName;
231 bool m_ruleGroupNameHasBeenSet = false;
232
233 RuleGroup m_ruleGroup;
234 bool m_ruleGroupHasBeenSet = false;
235
236 Aws::String m_rules;
237 bool m_rulesHasBeenSet = false;
238
239 RuleGroupType m_type;
240 bool m_typeHasBeenSet = false;
241
242 Aws::String m_description;
243 bool m_descriptionHasBeenSet = false;
244
245 int m_capacity;
246 bool m_capacityHasBeenSet = false;
247
248 Aws::Vector<Tag> m_tags;
249 bool m_tagsHasBeenSet = false;
250
251 bool m_dryRun;
252 bool m_dryRunHasBeenSet = false;
253
254 EncryptionConfiguration m_encryptionConfiguration;
255 bool m_encryptionConfigurationHasBeenSet = false;
256
257 SourceMetadata m_sourceMetadata;
258 bool m_sourceMetadataHasBeenSet = false;
259
260 bool m_analyzeRuleGroup;
261 bool m_analyzeRuleGroupHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace NetworkFirewall
266} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateRuleGroupRequest & WithSourceMetadata(const SourceMetadata &value)
CreateRuleGroupRequest & WithRuleGroupName(Aws::String &&value)
CreateRuleGroupRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
CreateRuleGroupRequest & WithRuleGroup(const RuleGroup &value)
CreateRuleGroupRequest & WithRuleGroupName(const Aws::String &value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleGroupRequest & WithDescription(Aws::String &&value)
CreateRuleGroupRequest & WithRules(Aws::String &&value)
CreateRuleGroupRequest & WithSourceMetadata(SourceMetadata &&value)
CreateRuleGroupRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
CreateRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleGroupRequest & WithRuleGroupName(const char *value)
CreateRuleGroupRequest & WithDescription(const char *value)
CreateRuleGroupRequest & WithRules(const Aws::String &value)
CreateRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
CreateRuleGroupRequest & WithRuleGroup(RuleGroup &&value)
CreateRuleGroupRequest & WithRules(const char *value)
CreateRuleGroupRequest & WithDescription(const Aws::String &value)
CreateRuleGroupRequest & WithType(const RuleGroupType &value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
CreateRuleGroupRequest & WithAnalyzeRuleGroup(bool value)
CreateRuleGroupRequest & WithType(RuleGroupType &&value)
CreateRuleGroupRequest & AddTags(const Tag &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