AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleGroupRequest.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/network-firewall/model/EncryptionConfiguration.h>
13#include <aws/network-firewall/model/SourceMetadata.h>
14#include <utility>
15
16namespace Aws
17{
18namespace NetworkFirewall
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKFIREWALL_API UpdateRuleGroupRequest();
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
40
42
53 inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
54 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
55 inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
56 inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
57 inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
58 inline UpdateRuleGroupRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
59 inline UpdateRuleGroupRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
60 inline UpdateRuleGroupRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
62
64
68 inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; }
69 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
70 inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
71 inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
72 inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
73 inline UpdateRuleGroupRequest& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
74 inline UpdateRuleGroupRequest& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
75 inline UpdateRuleGroupRequest& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
77
79
84 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
85 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
86 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
87 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
88 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
89 inline UpdateRuleGroupRequest& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
90 inline UpdateRuleGroupRequest& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
91 inline UpdateRuleGroupRequest& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
93
95
100 inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
101 inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
102 inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = value; }
103 inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = std::move(value); }
104 inline UpdateRuleGroupRequest& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
105 inline UpdateRuleGroupRequest& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
107
109
119 inline const Aws::String& GetRules() const{ return m_rules; }
120 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
121 inline void SetRules(const Aws::String& value) { m_rulesHasBeenSet = true; m_rules = value; }
122 inline void SetRules(Aws::String&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
123 inline void SetRules(const char* value) { m_rulesHasBeenSet = true; m_rules.assign(value); }
124 inline UpdateRuleGroupRequest& WithRules(const Aws::String& value) { SetRules(value); return *this;}
125 inline UpdateRuleGroupRequest& WithRules(Aws::String&& value) { SetRules(std::move(value)); return *this;}
126 inline UpdateRuleGroupRequest& WithRules(const char* value) { SetRules(value); return *this;}
128
130
136 inline const RuleGroupType& GetType() const{ return m_type; }
137 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
138 inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
139 inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
140 inline UpdateRuleGroupRequest& WithType(const RuleGroupType& value) { SetType(value); return *this;}
141 inline UpdateRuleGroupRequest& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetDescription() const{ return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
151 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
152 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
153 inline UpdateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 inline UpdateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
155 inline UpdateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
157
159
170 inline bool GetDryRun() const{ return m_dryRun; }
171 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
172 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
173 inline UpdateRuleGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
175
177
181 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
182 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
183 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
184 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
188
190
195 inline const SourceMetadata& GetSourceMetadata() const{ return m_sourceMetadata; }
196 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
197 inline void SetSourceMetadata(const SourceMetadata& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = value; }
198 inline void SetSourceMetadata(SourceMetadata&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::move(value); }
199 inline UpdateRuleGroupRequest& WithSourceMetadata(const SourceMetadata& value) { SetSourceMetadata(value); return *this;}
200 inline UpdateRuleGroupRequest& WithSourceMetadata(SourceMetadata&& value) { SetSourceMetadata(std::move(value)); return *this;}
202
204
211 inline bool GetAnalyzeRuleGroup() const{ return m_analyzeRuleGroup; }
212 inline bool AnalyzeRuleGroupHasBeenSet() const { return m_analyzeRuleGroupHasBeenSet; }
213 inline void SetAnalyzeRuleGroup(bool value) { m_analyzeRuleGroupHasBeenSet = true; m_analyzeRuleGroup = value; }
214 inline UpdateRuleGroupRequest& WithAnalyzeRuleGroup(bool value) { SetAnalyzeRuleGroup(value); return *this;}
216 private:
217
218 Aws::String m_updateToken;
219 bool m_updateTokenHasBeenSet = false;
220
221 Aws::String m_ruleGroupArn;
222 bool m_ruleGroupArnHasBeenSet = false;
223
224 Aws::String m_ruleGroupName;
225 bool m_ruleGroupNameHasBeenSet = false;
226
227 RuleGroup m_ruleGroup;
228 bool m_ruleGroupHasBeenSet = false;
229
230 Aws::String m_rules;
231 bool m_rulesHasBeenSet = false;
232
233 RuleGroupType m_type;
234 bool m_typeHasBeenSet = false;
235
236 Aws::String m_description;
237 bool m_descriptionHasBeenSet = false;
238
239 bool m_dryRun;
240 bool m_dryRunHasBeenSet = false;
241
242 EncryptionConfiguration m_encryptionConfiguration;
243 bool m_encryptionConfigurationHasBeenSet = false;
244
245 SourceMetadata m_sourceMetadata;
246 bool m_sourceMetadataHasBeenSet = false;
247
248 bool m_analyzeRuleGroup;
249 bool m_analyzeRuleGroupHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace NetworkFirewall
254} // namespace Aws
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
UpdateRuleGroupRequest & WithRuleGroupName(Aws::String &&value)
UpdateRuleGroupRequest & WithRuleGroupArn(const char *value)
UpdateRuleGroupRequest & WithSourceMetadata(const SourceMetadata &value)
UpdateRuleGroupRequest & WithAnalyzeRuleGroup(bool value)
UpdateRuleGroupRequest & WithRules(Aws::String &&value)
UpdateRuleGroupRequest & WithRuleGroupArn(Aws::String &&value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
UpdateRuleGroupRequest & WithDescription(Aws::String &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
UpdateRuleGroupRequest & WithRules(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateRuleGroupRequest & WithRuleGroupArn(const Aws::String &value)
UpdateRuleGroupRequest & WithType(const RuleGroupType &value)
UpdateRuleGroupRequest & WithDescription(const char *value)
UpdateRuleGroupRequest & WithSourceMetadata(SourceMetadata &&value)
UpdateRuleGroupRequest & WithRuleGroupName(const Aws::String &value)
UpdateRuleGroupRequest & WithDescription(const Aws::String &value)
UpdateRuleGroupRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
UpdateRuleGroupRequest & WithRules(const char *value)
UpdateRuleGroupRequest & WithUpdateToken(Aws::String &&value)
UpdateRuleGroupRequest & WithRuleGroupName(const char *value)
UpdateRuleGroupRequest & WithRuleGroup(RuleGroup &&value)
UpdateRuleGroupRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
UpdateRuleGroupRequest & WithRuleGroup(const RuleGroup &value)
UpdateRuleGroupRequest & WithUpdateToken(const Aws::String &value)
UpdateRuleGroupRequest & WithUpdateToken(const char *value)
UpdateRuleGroupRequest & WithType(RuleGroupType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String