AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedRuleGroupStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/ExcludedRule.h>
11#include <aws/wafv2/model/ManagedRuleGroupConfig.h>
12#include <aws/wafv2/model/RuleActionOverride.h>
13#include <utility>
14#include <memory>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WAFV2
27{
28namespace Model
29{
30 class Statement;
31
53 {
54 public:
58 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
59
60
62
66 inline const Aws::String& GetVendorName() const{ return m_vendorName; }
67 inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; }
68 inline void SetVendorName(const Aws::String& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; }
69 inline void SetVendorName(Aws::String&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); }
70 inline void SetVendorName(const char* value) { m_vendorNameHasBeenSet = true; m_vendorName.assign(value); }
71 inline ManagedRuleGroupStatement& WithVendorName(const Aws::String& value) { SetVendorName(value); return *this;}
72 inline ManagedRuleGroupStatement& WithVendorName(Aws::String&& value) { SetVendorName(std::move(value)); return *this;}
73 inline ManagedRuleGroupStatement& WithVendorName(const char* value) { SetVendorName(value); return *this;}
75
77
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline ManagedRuleGroupStatement& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline ManagedRuleGroupStatement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline ManagedRuleGroupStatement& WithName(const char* value) { SetName(value); return *this;}
90
92
98 inline const Aws::String& GetVersion() const{ return m_version; }
99 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
100 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
101 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
102 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
103 inline ManagedRuleGroupStatement& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
104 inline ManagedRuleGroupStatement& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
105 inline ManagedRuleGroupStatement& WithVersion(const char* value) { SetVersion(value); return *this;}
107
109
115 inline const Aws::Vector<ExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
116 inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
117 inline void SetExcludedRules(const Aws::Vector<ExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
118 inline void SetExcludedRules(Aws::Vector<ExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
121 inline ManagedRuleGroupStatement& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
122 inline ManagedRuleGroupStatement& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
124
126
133 AWS_WAFV2_API const Statement& GetScopeDownStatement() const;
134 AWS_WAFV2_API bool ScopeDownStatementHasBeenSet() const;
135 AWS_WAFV2_API void SetScopeDownStatement(const Statement& value);
136 AWS_WAFV2_API void SetScopeDownStatement(Statement&& value);
140
142
159 inline const Aws::Vector<ManagedRuleGroupConfig>& GetManagedRuleGroupConfigs() const{ return m_managedRuleGroupConfigs; }
160 inline bool ManagedRuleGroupConfigsHasBeenSet() const { return m_managedRuleGroupConfigsHasBeenSet; }
161 inline void SetManagedRuleGroupConfigs(const Aws::Vector<ManagedRuleGroupConfig>& value) { m_managedRuleGroupConfigsHasBeenSet = true; m_managedRuleGroupConfigs = value; }
162 inline void SetManagedRuleGroupConfigs(Aws::Vector<ManagedRuleGroupConfig>&& value) { m_managedRuleGroupConfigsHasBeenSet = true; m_managedRuleGroupConfigs = std::move(value); }
165 inline ManagedRuleGroupStatement& AddManagedRuleGroupConfigs(const ManagedRuleGroupConfig& value) { m_managedRuleGroupConfigsHasBeenSet = true; m_managedRuleGroupConfigs.push_back(value); return *this; }
166 inline ManagedRuleGroupStatement& AddManagedRuleGroupConfigs(ManagedRuleGroupConfig&& value) { m_managedRuleGroupConfigsHasBeenSet = true; m_managedRuleGroupConfigs.push_back(std::move(value)); return *this; }
168
170
179 inline const Aws::Vector<RuleActionOverride>& GetRuleActionOverrides() const{ return m_ruleActionOverrides; }
180 inline bool RuleActionOverridesHasBeenSet() const { return m_ruleActionOverridesHasBeenSet; }
181 inline void SetRuleActionOverrides(const Aws::Vector<RuleActionOverride>& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides = value; }
182 inline void SetRuleActionOverrides(Aws::Vector<RuleActionOverride>&& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides = std::move(value); }
185 inline ManagedRuleGroupStatement& AddRuleActionOverrides(const RuleActionOverride& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides.push_back(value); return *this; }
186 inline ManagedRuleGroupStatement& AddRuleActionOverrides(RuleActionOverride&& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides.push_back(std::move(value)); return *this; }
188 private:
189
190 Aws::String m_vendorName;
191 bool m_vendorNameHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_version;
197 bool m_versionHasBeenSet = false;
198
199 Aws::Vector<ExcludedRule> m_excludedRules;
200 bool m_excludedRulesHasBeenSet = false;
201
202 std::shared_ptr<Statement> m_scopeDownStatement;
203 bool m_scopeDownStatementHasBeenSet = false;
204
205 Aws::Vector<ManagedRuleGroupConfig> m_managedRuleGroupConfigs;
206 bool m_managedRuleGroupConfigsHasBeenSet = false;
207
208 Aws::Vector<RuleActionOverride> m_ruleActionOverrides;
209 bool m_ruleActionOverridesHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace WAFV2
214} // namespace Aws
ManagedRuleGroupStatement & AddManagedRuleGroupConfigs(const ManagedRuleGroupConfig &value)
const Aws::Vector< ExcludedRule > & GetExcludedRules() const
ManagedRuleGroupStatement & WithVendorName(Aws::String &&value)
void SetRuleActionOverrides(Aws::Vector< RuleActionOverride > &&value)
AWS_WAFV2_API void SetScopeDownStatement(const Statement &value)
ManagedRuleGroupStatement & WithRuleActionOverrides(Aws::Vector< RuleActionOverride > &&value)
ManagedRuleGroupStatement & WithManagedRuleGroupConfigs(const Aws::Vector< ManagedRuleGroupConfig > &value)
AWS_WAFV2_API bool ScopeDownStatementHasBeenSet() const
AWS_WAFV2_API ManagedRuleGroupStatement(Aws::Utils::Json::JsonView jsonValue)
ManagedRuleGroupStatement & AddManagedRuleGroupConfigs(ManagedRuleGroupConfig &&value)
const Aws::Vector< ManagedRuleGroupConfig > & GetManagedRuleGroupConfigs() const
ManagedRuleGroupStatement & WithVendorName(const Aws::String &value)
ManagedRuleGroupStatement & WithVersion(const char *value)
ManagedRuleGroupStatement & WithManagedRuleGroupConfigs(Aws::Vector< ManagedRuleGroupConfig > &&value)
void SetRuleActionOverrides(const Aws::Vector< RuleActionOverride > &value)
ManagedRuleGroupStatement & WithVersion(const Aws::String &value)
ManagedRuleGroupStatement & AddExcludedRules(const ExcludedRule &value)
void SetManagedRuleGroupConfigs(const Aws::Vector< ManagedRuleGroupConfig > &value)
void SetExcludedRules(Aws::Vector< ExcludedRule > &&value)
void SetExcludedRules(const Aws::Vector< ExcludedRule > &value)
AWS_WAFV2_API ManagedRuleGroupStatement & WithScopeDownStatement(Statement &&value)
ManagedRuleGroupStatement & WithExcludedRules(Aws::Vector< ExcludedRule > &&value)
ManagedRuleGroupStatement & WithName(Aws::String &&value)
AWS_WAFV2_API ManagedRuleGroupStatement & WithScopeDownStatement(const Statement &value)
void SetManagedRuleGroupConfigs(Aws::Vector< ManagedRuleGroupConfig > &&value)
ManagedRuleGroupStatement & WithExcludedRules(const Aws::Vector< ExcludedRule > &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedRuleGroupStatement & WithVersion(Aws::String &&value)
ManagedRuleGroupStatement & WithName(const char *value)
AWS_WAFV2_API ManagedRuleGroupStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedRuleGroupStatement & WithVendorName(const char *value)
ManagedRuleGroupStatement & AddRuleActionOverrides(const RuleActionOverride &value)
ManagedRuleGroupStatement & AddExcludedRules(ExcludedRule &&value)
AWS_WAFV2_API void SetScopeDownStatement(Statement &&value)
ManagedRuleGroupStatement & WithRuleActionOverrides(const Aws::Vector< RuleActionOverride > &value)
ManagedRuleGroupStatement & AddRuleActionOverrides(RuleActionOverride &&value)
const Aws::Vector< RuleActionOverride > & GetRuleActionOverrides() const
AWS_WAFV2_API const Statement & GetScopeDownStatement() const
ManagedRuleGroupStatement & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue