AWS SDK for C++  1.9.108
AWS SDK for C++
ManagedRuleGroupStatement.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <memory>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
28  class Statement;
29 
42  {
43  public:
48 
49 
54  inline const Aws::String& GetVendorName() const{ return m_vendorName; }
55 
60  inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; }
61 
66  inline void SetVendorName(const Aws::String& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; }
67 
72  inline void SetVendorName(Aws::String&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); }
73 
78  inline void SetVendorName(const char* value) { m_vendorNameHasBeenSet = true; m_vendorName.assign(value); }
79 
84  inline ManagedRuleGroupStatement& WithVendorName(const Aws::String& value) { SetVendorName(value); return *this;}
85 
90  inline ManagedRuleGroupStatement& WithVendorName(Aws::String&& value) { SetVendorName(std::move(value)); return *this;}
91 
96  inline ManagedRuleGroupStatement& WithVendorName(const char* value) { SetVendorName(value); return *this;}
97 
98 
103  inline const Aws::String& GetName() const{ return m_name; }
104 
109  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 
115  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
116 
121  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
122 
127  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 
133  inline ManagedRuleGroupStatement& WithName(const Aws::String& value) { SetName(value); return *this;}
134 
139  inline ManagedRuleGroupStatement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
140 
145  inline ManagedRuleGroupStatement& WithName(const char* value) { SetName(value); return *this;}
146 
147 
154  inline const Aws::String& GetVersion() const{ return m_version; }
155 
162  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
163 
170  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
171 
178  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
179 
186  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
187 
194  inline ManagedRuleGroupStatement& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
195 
202  inline ManagedRuleGroupStatement& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
203 
210  inline ManagedRuleGroupStatement& WithVersion(const char* value) { SetVersion(value); return *this;}
211 
212 
218  inline const Aws::Vector<ExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
219 
225  inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
226 
232  inline void SetExcludedRules(const Aws::Vector<ExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
233 
239  inline void SetExcludedRules(Aws::Vector<ExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
240 
246  inline ManagedRuleGroupStatement& WithExcludedRules(const Aws::Vector<ExcludedRule>& value) { SetExcludedRules(value); return *this;}
247 
253  inline ManagedRuleGroupStatement& WithExcludedRules(Aws::Vector<ExcludedRule>&& value) { SetExcludedRules(std::move(value)); return *this;}
254 
260  inline ManagedRuleGroupStatement& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
261 
267  inline ManagedRuleGroupStatement& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
268 
269 
278 
287 
295  void SetScopeDownStatement(const Statement& value);
296 
305 
314 
323 
324  private:
325 
326  Aws::String m_vendorName;
327  bool m_vendorNameHasBeenSet;
328 
329  Aws::String m_name;
330  bool m_nameHasBeenSet;
331 
332  Aws::String m_version;
333  bool m_versionHasBeenSet;
334 
335  Aws::Vector<ExcludedRule> m_excludedRules;
336  bool m_excludedRulesHasBeenSet;
337 
338  std::shared_ptr<Statement> m_scopeDownStatement;
339  bool m_scopeDownStatementHasBeenSet;
340  };
341 
342 } // namespace Model
343 } // namespace WAFV2
344 } // namespace Aws
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithScopeDownStatement
ManagedRuleGroupStatement & WithScopeDownStatement(const Statement &value)
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithVersion
ManagedRuleGroupStatement & WithVersion(Aws::String &&value)
Definition: ManagedRuleGroupStatement.h:202
Aws::WAFV2::Model::ManagedRuleGroupStatement::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ManagedRuleGroupStatement.h:162
Aws::WAFV2::Model::ExcludedRule
Definition: ExcludedRule.h:35
Aws::WAFV2::Model::ManagedRuleGroupStatement
Definition: ManagedRuleGroupStatement.h:42
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetScopeDownStatement
void SetScopeDownStatement(const Statement &value)
Aws::WAFV2::Model::ManagedRuleGroupStatement::GetName
const Aws::String & GetName() const
Definition: ManagedRuleGroupStatement.h:103
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithExcludedRules
ManagedRuleGroupStatement & WithExcludedRules(Aws::Vector< ExcludedRule > &&value)
Definition: ManagedRuleGroupStatement.h:253
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetVersion
void SetVersion(const Aws::String &value)
Definition: ManagedRuleGroupStatement.h:170
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetVendorName
void SetVendorName(Aws::String &&value)
Definition: ManagedRuleGroupStatement.h:72
Aws::WAFV2::Model::ManagedRuleGroupStatement::VendorNameHasBeenSet
bool VendorNameHasBeenSet() const
Definition: ManagedRuleGroupStatement.h:60
AWSVector.h
Aws::WAFV2::Model::ManagedRuleGroupStatement::operator=
ManagedRuleGroupStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetScopeDownStatement
void SetScopeDownStatement(Statement &&value)
Aws::WAFV2::Model::ManagedRuleGroupStatement::GetExcludedRules
const Aws::Vector< ExcludedRule > & GetExcludedRules() const
Definition: ManagedRuleGroupStatement.h:218
WAFV2_EXPORTS.h
Aws::WAFV2::Model::ManagedRuleGroupStatement::GetVersion
const Aws::String & GetVersion() const
Definition: ManagedRuleGroupStatement.h:154
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithExcludedRules
ManagedRuleGroupStatement & WithExcludedRules(const Aws::Vector< ExcludedRule > &value)
Definition: ManagedRuleGroupStatement.h:246
Aws::WAFV2::Model::ManagedRuleGroupStatement::ExcludedRulesHasBeenSet
bool ExcludedRulesHasBeenSet() const
Definition: ManagedRuleGroupStatement.h:225
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetExcludedRules
void SetExcludedRules(const Aws::Vector< ExcludedRule > &value)
Definition: ManagedRuleGroupStatement.h:232
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithVendorName
ManagedRuleGroupStatement & WithVendorName(const char *value)
Definition: ManagedRuleGroupStatement.h:96
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetVendorName
void SetVendorName(const char *value)
Definition: ManagedRuleGroupStatement.h:78
Aws::WAFV2::Model::ManagedRuleGroupStatement::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ManagedRuleGroupStatement.h:109
Aws::WAFV2::Model::ManagedRuleGroupStatement::AddExcludedRules
ManagedRuleGroupStatement & AddExcludedRules(ExcludedRule &&value)
Definition: ManagedRuleGroupStatement.h:267
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetName
void SetName(Aws::String &&value)
Definition: ManagedRuleGroupStatement.h:121
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetName
void SetName(const Aws::String &value)
Definition: ManagedRuleGroupStatement.h:115
Aws::WAFV2::Model::ManagedRuleGroupStatement::GetVendorName
const Aws::String & GetVendorName() const
Definition: ManagedRuleGroupStatement.h:54
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithName
ManagedRuleGroupStatement & WithName(const char *value)
Definition: ManagedRuleGroupStatement.h:145
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetName
void SetName(const char *value)
Definition: ManagedRuleGroupStatement.h:127
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithScopeDownStatement
ManagedRuleGroupStatement & WithScopeDownStatement(Statement &&value)
Aws::WAFV2::Model::ManagedRuleGroupStatement::ScopeDownStatementHasBeenSet
bool ScopeDownStatementHasBeenSet() const
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetVersion
void SetVersion(const char *value)
Definition: ManagedRuleGroupStatement.h:186
Aws::WAFV2::Model::ManagedRuleGroupStatement::ManagedRuleGroupStatement
ManagedRuleGroupStatement()
ExcludedRule.h
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithVendorName
ManagedRuleGroupStatement & WithVendorName(const Aws::String &value)
Definition: ManagedRuleGroupStatement.h:84
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithVersion
ManagedRuleGroupStatement & WithVersion(const char *value)
Definition: ManagedRuleGroupStatement.h:210
Aws::WAFV2::Model::ManagedRuleGroupStatement::ManagedRuleGroupStatement
ManagedRuleGroupStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Statement
Definition: Statement.h:48
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithVendorName
ManagedRuleGroupStatement & WithVendorName(Aws::String &&value)
Definition: ManagedRuleGroupStatement.h:90
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetVendorName
void SetVendorName(const Aws::String &value)
Definition: ManagedRuleGroupStatement.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::ManagedRuleGroupStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithName
ManagedRuleGroupStatement & WithName(Aws::String &&value)
Definition: ManagedRuleGroupStatement.h:139
Aws::WAFV2::Model::ManagedRuleGroupStatement::GetScopeDownStatement
const Statement & GetScopeDownStatement() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetExcludedRules
void SetExcludedRules(Aws::Vector< ExcludedRule > &&value)
Definition: ManagedRuleGroupStatement.h:239
Aws::WAFV2::Model::ManagedRuleGroupStatement::SetVersion
void SetVersion(Aws::String &&value)
Definition: ManagedRuleGroupStatement.h:178
Aws::WAFV2::Model::ManagedRuleGroupStatement::AddExcludedRules
ManagedRuleGroupStatement & AddExcludedRules(const ExcludedRule &value)
Definition: ManagedRuleGroupStatement.h:260
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithName
ManagedRuleGroupStatement & WithName(const Aws::String &value)
Definition: ManagedRuleGroupStatement.h:133
Aws::WAFV2::Model::ManagedRuleGroupStatement::WithVersion
ManagedRuleGroupStatement & WithVersion(const Aws::String &value)
Definition: ManagedRuleGroupStatement.h:194