AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <aws/network-firewall/model/SummaryConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace NetworkFirewall
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_NETWORKFIREWALL_API UpdateRuleGroupRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleGroup"; }
36
37 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
38
39 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
54 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
55 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
56 template<typename UpdateTokenT = Aws::String>
57 void SetUpdateToken(UpdateTokenT&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::forward<UpdateTokenT>(value); }
58 template<typename UpdateTokenT = Aws::String>
59 UpdateRuleGroupRequest& WithUpdateToken(UpdateTokenT&& value) { SetUpdateToken(std::forward<UpdateTokenT>(value)); return *this;}
61
63
67 inline const Aws::String& GetRuleGroupArn() const { return m_ruleGroupArn; }
68 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
69 template<typename RuleGroupArnT = Aws::String>
70 void SetRuleGroupArn(RuleGroupArnT&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::forward<RuleGroupArnT>(value); }
71 template<typename RuleGroupArnT = Aws::String>
72 UpdateRuleGroupRequest& WithRuleGroupArn(RuleGroupArnT&& value) { SetRuleGroupArn(std::forward<RuleGroupArnT>(value)); return *this;}
74
76
81 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
82 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
83 template<typename RuleGroupNameT = Aws::String>
84 void SetRuleGroupName(RuleGroupNameT&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::forward<RuleGroupNameT>(value); }
85 template<typename RuleGroupNameT = Aws::String>
86 UpdateRuleGroupRequest& WithRuleGroupName(RuleGroupNameT&& value) { SetRuleGroupName(std::forward<RuleGroupNameT>(value)); return *this;}
88
90
95 inline const RuleGroup& GetRuleGroup() const { return m_ruleGroup; }
96 inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
97 template<typename RuleGroupT = RuleGroup>
98 void SetRuleGroup(RuleGroupT&& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = std::forward<RuleGroupT>(value); }
99 template<typename RuleGroupT = RuleGroup>
100 UpdateRuleGroupRequest& WithRuleGroup(RuleGroupT&& value) { SetRuleGroup(std::forward<RuleGroupT>(value)); return *this;}
102
104
114 inline const Aws::String& GetRules() const { return m_rules; }
115 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
116 template<typename RulesT = Aws::String>
117 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
118 template<typename RulesT = Aws::String>
119 UpdateRuleGroupRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
121
123
129 inline RuleGroupType GetType() const { return m_type; }
130 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
131 inline void SetType(RuleGroupType value) { m_typeHasBeenSet = true; m_type = value; }
132 inline UpdateRuleGroupRequest& WithType(RuleGroupType value) { SetType(value); return *this;}
134
136
139 inline const Aws::String& GetDescription() const { return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 template<typename DescriptionT = Aws::String>
142 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
143 template<typename DescriptionT = Aws::String>
144 UpdateRuleGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
146
148
159 inline bool GetDryRun() const { return m_dryRun; }
160 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
161 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
162 inline UpdateRuleGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
164
166
170 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
171 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
172 template<typename EncryptionConfigurationT = EncryptionConfiguration>
173 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
174 template<typename EncryptionConfigurationT = EncryptionConfiguration>
175 UpdateRuleGroupRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
177
179
184 inline const SourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
185 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
186 template<typename SourceMetadataT = SourceMetadata>
187 void SetSourceMetadata(SourceMetadataT&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::forward<SourceMetadataT>(value); }
188 template<typename SourceMetadataT = SourceMetadata>
189 UpdateRuleGroupRequest& WithSourceMetadata(SourceMetadataT&& value) { SetSourceMetadata(std::forward<SourceMetadataT>(value)); return *this;}
191
193
200 inline bool GetAnalyzeRuleGroup() const { return m_analyzeRuleGroup; }
201 inline bool AnalyzeRuleGroupHasBeenSet() const { return m_analyzeRuleGroupHasBeenSet; }
202 inline void SetAnalyzeRuleGroup(bool value) { m_analyzeRuleGroupHasBeenSet = true; m_analyzeRuleGroup = value; }
203 inline UpdateRuleGroupRequest& WithAnalyzeRuleGroup(bool value) { SetAnalyzeRuleGroup(value); return *this;}
205
207
211 inline const SummaryConfiguration& GetSummaryConfiguration() const { return m_summaryConfiguration; }
212 inline bool SummaryConfigurationHasBeenSet() const { return m_summaryConfigurationHasBeenSet; }
213 template<typename SummaryConfigurationT = SummaryConfiguration>
214 void SetSummaryConfiguration(SummaryConfigurationT&& value) { m_summaryConfigurationHasBeenSet = true; m_summaryConfiguration = std::forward<SummaryConfigurationT>(value); }
215 template<typename SummaryConfigurationT = SummaryConfiguration>
216 UpdateRuleGroupRequest& WithSummaryConfiguration(SummaryConfigurationT&& value) { SetSummaryConfiguration(std::forward<SummaryConfigurationT>(value)); return *this;}
218 private:
219
220 Aws::String m_updateToken;
221 bool m_updateTokenHasBeenSet = false;
222
223 Aws::String m_ruleGroupArn;
224 bool m_ruleGroupArnHasBeenSet = false;
225
226 Aws::String m_ruleGroupName;
227 bool m_ruleGroupNameHasBeenSet = false;
228
229 RuleGroup m_ruleGroup;
230 bool m_ruleGroupHasBeenSet = false;
231
232 Aws::String m_rules;
233 bool m_rulesHasBeenSet = false;
234
236 bool m_typeHasBeenSet = false;
237
238 Aws::String m_description;
239 bool m_descriptionHasBeenSet = false;
240
241 bool m_dryRun{false};
242 bool m_dryRunHasBeenSet = false;
243
244 EncryptionConfiguration m_encryptionConfiguration;
245 bool m_encryptionConfigurationHasBeenSet = false;
246
247 SourceMetadata m_sourceMetadata;
248 bool m_sourceMetadataHasBeenSet = false;
249
250 bool m_analyzeRuleGroup{false};
251 bool m_analyzeRuleGroupHasBeenSet = false;
252
253 SummaryConfiguration m_summaryConfiguration;
254 bool m_summaryConfigurationHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace NetworkFirewall
259} // 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 & WithSourceMetadata(SourceMetadataT &&value)
UpdateRuleGroupRequest & WithSummaryConfiguration(SummaryConfigurationT &&value)
UpdateRuleGroupRequest & WithRuleGroup(RuleGroupT &&value)
AWS_NETWORKFIREWALL_API UpdateRuleGroupRequest()=default
UpdateRuleGroupRequest & WithType(RuleGroupType value)
const SummaryConfiguration & GetSummaryConfiguration() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String