AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroupReferenceStatement.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/RuleActionOverride.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2
25{
26namespace Model
27{
28
42 {
43 public:
47 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetARN() const{ return m_aRN; }
55 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
56 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
57 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
58 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
59 inline RuleGroupReferenceStatement& WithARN(const Aws::String& value) { SetARN(value); return *this;}
60 inline RuleGroupReferenceStatement& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
61 inline RuleGroupReferenceStatement& WithARN(const char* value) { SetARN(value); return *this;}
63
65
71 inline const Aws::Vector<ExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
72 inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
73 inline void SetExcludedRules(const Aws::Vector<ExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
74 inline void SetExcludedRules(Aws::Vector<ExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
77 inline RuleGroupReferenceStatement& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
78 inline RuleGroupReferenceStatement& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
80
82
91 inline const Aws::Vector<RuleActionOverride>& GetRuleActionOverrides() const{ return m_ruleActionOverrides; }
92 inline bool RuleActionOverridesHasBeenSet() const { return m_ruleActionOverridesHasBeenSet; }
93 inline void SetRuleActionOverrides(const Aws::Vector<RuleActionOverride>& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides = value; }
94 inline void SetRuleActionOverrides(Aws::Vector<RuleActionOverride>&& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides = std::move(value); }
97 inline RuleGroupReferenceStatement& AddRuleActionOverrides(const RuleActionOverride& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides.push_back(value); return *this; }
98 inline RuleGroupReferenceStatement& AddRuleActionOverrides(RuleActionOverride&& value) { m_ruleActionOverridesHasBeenSet = true; m_ruleActionOverrides.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_aRN;
103 bool m_aRNHasBeenSet = false;
104
105 Aws::Vector<ExcludedRule> m_excludedRules;
106 bool m_excludedRulesHasBeenSet = false;
107
108 Aws::Vector<RuleActionOverride> m_ruleActionOverrides;
109 bool m_ruleActionOverridesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace WAFV2
114} // namespace Aws
void SetRuleActionOverrides(Aws::Vector< RuleActionOverride > &&value)
RuleGroupReferenceStatement & WithARN(Aws::String &&value)
RuleGroupReferenceStatement & AddRuleActionOverrides(RuleActionOverride &&value)
RuleGroupReferenceStatement & AddExcludedRules(const ExcludedRule &value)
RuleGroupReferenceStatement & WithExcludedRules(Aws::Vector< ExcludedRule > &&value)
void SetExcludedRules(Aws::Vector< ExcludedRule > &&value)
void SetRuleActionOverrides(const Aws::Vector< RuleActionOverride > &value)
const Aws::Vector< ExcludedRule > & GetExcludedRules() const
RuleGroupReferenceStatement & WithARN(const char *value)
AWS_WAFV2_API RuleGroupReferenceStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API RuleGroupReferenceStatement(Aws::Utils::Json::JsonView jsonValue)
RuleGroupReferenceStatement & AddExcludedRules(ExcludedRule &&value)
void SetExcludedRules(const Aws::Vector< ExcludedRule > &value)
const Aws::Vector< RuleActionOverride > & GetRuleActionOverrides() const
RuleGroupReferenceStatement & AddRuleActionOverrides(const RuleActionOverride &value)
RuleGroupReferenceStatement & WithExcludedRules(const Aws::Vector< ExcludedRule > &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupReferenceStatement & WithARN(const Aws::String &value)
RuleGroupReferenceStatement & WithRuleActionOverrides(const Aws::Vector< RuleActionOverride > &value)
RuleGroupReferenceStatement & WithRuleActionOverrides(Aws::Vector< RuleActionOverride > &&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