AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafWebAclRule.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/WafAction.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/WafOverrideAction.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/securityhub/model/WafExcludedRule.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API AwsWafWebAclRule();
39 AWS_SECURITYHUB_API AwsWafWebAclRule(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API AwsWafWebAclRule& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const WafAction& GetAction() const{ return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(const WafAction& value) { m_actionHasBeenSet = true; m_action = value; }
52 inline void SetAction(WafAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
53 inline AwsWafWebAclRule& WithAction(const WafAction& value) { SetAction(value); return *this;}
54 inline AwsWafWebAclRule& WithAction(WafAction&& value) { SetAction(std::move(value)); return *this;}
56
58
61 inline const Aws::Vector<WafExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
62 inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
63 inline void SetExcludedRules(const Aws::Vector<WafExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
64 inline void SetExcludedRules(Aws::Vector<WafExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
66 inline AwsWafWebAclRule& WithExcludedRules(Aws::Vector<WafExcludedRule>&& value) { SetExcludedRules(std::move(value)); return *this;}
67 inline AwsWafWebAclRule& AddExcludedRules(const WafExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
68 inline AwsWafWebAclRule& AddExcludedRules(WafExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
70
72
89 inline const WafOverrideAction& GetOverrideAction() const{ return m_overrideAction; }
90 inline bool OverrideActionHasBeenSet() const { return m_overrideActionHasBeenSet; }
91 inline void SetOverrideAction(const WafOverrideAction& value) { m_overrideActionHasBeenSet = true; m_overrideAction = value; }
92 inline void SetOverrideAction(WafOverrideAction&& value) { m_overrideActionHasBeenSet = true; m_overrideAction = std::move(value); }
93 inline AwsWafWebAclRule& WithOverrideAction(const WafOverrideAction& value) { SetOverrideAction(value); return *this;}
94 inline AwsWafWebAclRule& WithOverrideAction(WafOverrideAction&& value) { SetOverrideAction(std::move(value)); return *this;}
96
98
104 inline int GetPriority() const{ return m_priority; }
105 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
106 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
107 inline AwsWafWebAclRule& WithPriority(int value) { SetPriority(value); return *this;}
109
111
114 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
115 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
116 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
117 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
118 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
119 inline AwsWafWebAclRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
120 inline AwsWafWebAclRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
121 inline AwsWafWebAclRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
123
125
130 inline const Aws::String& GetType() const{ return m_type; }
131 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
132 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
133 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
134 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
135 inline AwsWafWebAclRule& WithType(const Aws::String& value) { SetType(value); return *this;}
136 inline AwsWafWebAclRule& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
137 inline AwsWafWebAclRule& WithType(const char* value) { SetType(value); return *this;}
139 private:
140
141 WafAction m_action;
142 bool m_actionHasBeenSet = false;
143
144 Aws::Vector<WafExcludedRule> m_excludedRules;
145 bool m_excludedRulesHasBeenSet = false;
146
147 WafOverrideAction m_overrideAction;
148 bool m_overrideActionHasBeenSet = false;
149
150 int m_priority;
151 bool m_priorityHasBeenSet = false;
152
153 Aws::String m_ruleId;
154 bool m_ruleIdHasBeenSet = false;
155
156 Aws::String m_type;
157 bool m_typeHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace SecurityHub
162} // namespace Aws
AWS_SECURITYHUB_API AwsWafWebAclRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafWebAclRule & AddExcludedRules(WafExcludedRule &&value)
AwsWafWebAclRule & WithType(Aws::String &&value)
const Aws::Vector< WafExcludedRule > & GetExcludedRules() const
AwsWafWebAclRule & WithExcludedRules(const Aws::Vector< WafExcludedRule > &value)
AwsWafWebAclRule & WithType(const char *value)
AwsWafWebAclRule & AddExcludedRules(const WafExcludedRule &value)
void SetExcludedRules(const Aws::Vector< WafExcludedRule > &value)
AWS_SECURITYHUB_API AwsWafWebAclRule(Aws::Utils::Json::JsonView jsonValue)
void SetExcludedRules(Aws::Vector< WafExcludedRule > &&value)
void SetType(const Aws::String &value)
const WafOverrideAction & GetOverrideAction() const
AwsWafWebAclRule & WithRuleId(const Aws::String &value)
void SetOverrideAction(WafOverrideAction &&value)
AwsWafWebAclRule & WithOverrideAction(const WafOverrideAction &value)
AwsWafWebAclRule & WithOverrideAction(WafOverrideAction &&value)
AwsWafWebAclRule & WithRuleId(Aws::String &&value)
void SetAction(const WafAction &value)
void SetRuleId(const Aws::String &value)
AwsWafWebAclRule & WithPriority(int value)
AwsWafWebAclRule & WithRuleId(const char *value)
AwsWafWebAclRule & WithAction(WafAction &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafWebAclRule & WithAction(const WafAction &value)
AwsWafWebAclRule & WithExcludedRules(Aws::Vector< WafExcludedRule > &&value)
void SetOverrideAction(const WafOverrideAction &value)
AwsWafWebAclRule & WithType(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