AWS SDK for C++  1.9.158
AWS SDK for C++
ActivatedRule.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace WAF
27 {
28 namespace Model
29 {
30 
52  {
53  public:
58 
59 
67  inline int GetPriority() const{ return m_priority; }
68 
76  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
77 
85  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
86 
94  inline ActivatedRule& WithPriority(int value) { SetPriority(value); return *this;}
95 
96 
106  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
107 
117  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
118 
128  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
129 
139  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
140 
150  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
151 
161  inline ActivatedRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
162 
172  inline ActivatedRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
173 
183  inline ActivatedRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
184 
185 
201  inline const WafAction& GetAction() const{ return m_action; }
202 
218  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
219 
235  inline void SetAction(const WafAction& value) { m_actionHasBeenSet = true; m_action = value; }
236 
252  inline void SetAction(WafAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
253 
269  inline ActivatedRule& WithAction(const WafAction& value) { SetAction(value); return *this;}
270 
286  inline ActivatedRule& WithAction(WafAction&& value) { SetAction(std::move(value)); return *this;}
287 
288 
307  inline const WafOverrideAction& GetOverrideAction() const{ return m_overrideAction; }
308 
327  inline bool OverrideActionHasBeenSet() const { return m_overrideActionHasBeenSet; }
328 
347  inline void SetOverrideAction(const WafOverrideAction& value) { m_overrideActionHasBeenSet = true; m_overrideAction = value; }
348 
367  inline void SetOverrideAction(WafOverrideAction&& value) { m_overrideActionHasBeenSet = true; m_overrideAction = std::move(value); }
368 
387  inline ActivatedRule& WithOverrideAction(const WafOverrideAction& value) { SetOverrideAction(value); return *this;}
388 
407  inline ActivatedRule& WithOverrideAction(WafOverrideAction&& value) { SetOverrideAction(std::move(value)); return *this;}
408 
409 
419  inline const WafRuleType& GetType() const{ return m_type; }
420 
430  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
431 
441  inline void SetType(const WafRuleType& value) { m_typeHasBeenSet = true; m_type = value; }
442 
452  inline void SetType(WafRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
453 
463  inline ActivatedRule& WithType(const WafRuleType& value) { SetType(value); return *this;}
464 
474  inline ActivatedRule& WithType(WafRuleType&& value) { SetType(std::move(value)); return *this;}
475 
476 
507  inline const Aws::Vector<ExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
508 
539  inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
540 
571  inline void SetExcludedRules(const Aws::Vector<ExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
572 
603  inline void SetExcludedRules(Aws::Vector<ExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
604 
635  inline ActivatedRule& WithExcludedRules(const Aws::Vector<ExcludedRule>& value) { SetExcludedRules(value); return *this;}
636 
667  inline ActivatedRule& WithExcludedRules(Aws::Vector<ExcludedRule>&& value) { SetExcludedRules(std::move(value)); return *this;}
668 
699  inline ActivatedRule& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
700 
731  inline ActivatedRule& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
732 
733  private:
734 
735  int m_priority;
736  bool m_priorityHasBeenSet;
737 
738  Aws::String m_ruleId;
739  bool m_ruleIdHasBeenSet;
740 
741  WafAction m_action;
742  bool m_actionHasBeenSet;
743 
744  WafOverrideAction m_overrideAction;
745  bool m_overrideActionHasBeenSet;
746 
747  WafRuleType m_type;
748  bool m_typeHasBeenSet;
749 
750  Aws::Vector<ExcludedRule> m_excludedRules;
751  bool m_excludedRulesHasBeenSet;
752  };
753 
754 } // namespace Model
755 } // namespace WAF
756 } // namespace Aws
Aws::WAF::Model::ActivatedRule::operator=
ActivatedRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::ActivatedRule::WithRuleId
ActivatedRule & WithRuleId(const Aws::String &value)
Definition: ActivatedRule.h:161
Aws::WAF::Model::ActivatedRule::WithPriority
ActivatedRule & WithPriority(int value)
Definition: ActivatedRule.h:94
Aws::WAF::Model::ExcludedRule
Definition: ExcludedRule.h:42
Aws::WAF::Model::ActivatedRule::SetExcludedRules
void SetExcludedRules(const Aws::Vector< ExcludedRule > &value)
Definition: ActivatedRule.h:571
Aws::WAF::Model::ActivatedRule::SetOverrideAction
void SetOverrideAction(WafOverrideAction &&value)
Definition: ActivatedRule.h:367
Aws::WAF::Model::ActivatedRule::WithType
ActivatedRule & WithType(WafRuleType &&value)
Definition: ActivatedRule.h:474
Aws::WAF::Model::ActivatedRule::WithAction
ActivatedRule & WithAction(const WafAction &value)
Definition: ActivatedRule.h:269
Aws::WAF::Model::ActivatedRule::WithRuleId
ActivatedRule & WithRuleId(const char *value)
Definition: ActivatedRule.h:183
Aws::WAF::Model::ActivatedRule::ActivatedRule
ActivatedRule()
Aws::WAF::Model::ActivatedRule::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: ActivatedRule.h:218
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::ActivatedRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::ActivatedRule::GetExcludedRules
const Aws::Vector< ExcludedRule > & GetExcludedRules() const
Definition: ActivatedRule.h:507
Aws::WAF::Model::ActivatedRule::GetRuleId
const Aws::String & GetRuleId() const
Definition: ActivatedRule.h:106
Aws::WAF::Model::WafAction
Definition: WafAction.h:44
Aws::WAF::Model::ActivatedRule::GetOverrideAction
const WafOverrideAction & GetOverrideAction() const
Definition: ActivatedRule.h:307
AWSVector.h
Aws::WAF::Model::ActivatedRule::GetType
const WafRuleType & GetType() const
Definition: ActivatedRule.h:419
Aws::WAF::Model::ActivatedRule::SetPriority
void SetPriority(int value)
Definition: ActivatedRule.h:85
Aws::WAF::Model::ActivatedRule::SetType
void SetType(const WafRuleType &value)
Definition: ActivatedRule.h:441
Aws::WAF::Model::ActivatedRule::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: ActivatedRule.h:128
WafRuleType.h
Aws::WAF::Model::ActivatedRule::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: ActivatedRule.h:139
Aws::WAF::Model::ActivatedRule::SetRuleId
void SetRuleId(const char *value)
Definition: ActivatedRule.h:150
Aws::WAF::Model::ActivatedRule::WithRuleId
ActivatedRule & WithRuleId(Aws::String &&value)
Definition: ActivatedRule.h:172
Aws::WAF::Model::WafOverrideAction
Definition: WafOverrideAction.h:41
Aws::WAF::Model::ActivatedRule::WithType
ActivatedRule & WithType(const WafRuleType &value)
Definition: ActivatedRule.h:463
ExcludedRule.h
Aws::WAF::Model::ActivatedRule::WithOverrideAction
ActivatedRule & WithOverrideAction(const WafOverrideAction &value)
Definition: ActivatedRule.h:387
Aws::WAF::Model::WafRuleType
WafRuleType
Definition: WafRuleType.h:17
Aws::WAF::Model::ActivatedRule::WithExcludedRules
ActivatedRule & WithExcludedRules(Aws::Vector< ExcludedRule > &&value)
Definition: ActivatedRule.h:667
Aws::WAF::Model::ActivatedRule::GetAction
const WafAction & GetAction() const
Definition: ActivatedRule.h:201
Aws::WAF::Model::ActivatedRule::WithExcludedRules
ActivatedRule & WithExcludedRules(const Aws::Vector< ExcludedRule > &value)
Definition: ActivatedRule.h:635
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::ActivatedRule::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ActivatedRule.h:430
Aws::WAF::Model::ActivatedRule::AddExcludedRules
ActivatedRule & AddExcludedRules(const ExcludedRule &value)
Definition: ActivatedRule.h:699
Aws::WAF::Model::ActivatedRule::ExcludedRulesHasBeenSet
bool ExcludedRulesHasBeenSet() const
Definition: ActivatedRule.h:539
Aws::WAF::Model::ActivatedRule::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: ActivatedRule.h:76
Aws::WAF::Model::ActivatedRule::WithAction
ActivatedRule & WithAction(WafAction &&value)
Definition: ActivatedRule.h:286
Aws::WAF::Model::ActivatedRule::WithOverrideAction
ActivatedRule & WithOverrideAction(WafOverrideAction &&value)
Definition: ActivatedRule.h:407
WAF_EXPORTS.h
Aws::WAF::Model::ActivatedRule::AddExcludedRules
ActivatedRule & AddExcludedRules(ExcludedRule &&value)
Definition: ActivatedRule.h:731
Aws::WAF::Model::ActivatedRule::SetAction
void SetAction(WafAction &&value)
Definition: ActivatedRule.h:252
Aws::WAF::Model::ActivatedRule::GetPriority
int GetPriority() const
Definition: ActivatedRule.h:67
Aws::WAF::Model::ActivatedRule::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: ActivatedRule.h:117
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::WAF::Model::ActivatedRule::ActivatedRule
ActivatedRule(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::ActivatedRule::SetOverrideAction
void SetOverrideAction(const WafOverrideAction &value)
Definition: ActivatedRule.h:347
Aws::WAF::Model::ActivatedRule
Definition: ActivatedRule.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
WafOverrideAction.h
Aws::WAF::Model::ActivatedRule::SetExcludedRules
void SetExcludedRules(Aws::Vector< ExcludedRule > &&value)
Definition: ActivatedRule.h:603
WafAction.h
Aws::WAF::Model::ActivatedRule::SetAction
void SetAction(const WafAction &value)
Definition: ActivatedRule.h:235
Aws::WAF::Model::ActivatedRule::OverrideActionHasBeenSet
bool OverrideActionHasBeenSet() const
Definition: ActivatedRule.h:327
Aws::WAF::Model::ActivatedRule::SetType
void SetType(WafRuleType &&value)
Definition: ActivatedRule.h:452