AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroupUpdate.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/ChangeAction.h>
9#include <aws/waf/model/ActivatedRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAF
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_WAF_API RuleGroupUpdate();
49
50
52
57 inline const ChangeAction& GetAction() const{ return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
60 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
61 inline RuleGroupUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
62 inline RuleGroupUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
64
66
73 inline const ActivatedRule& GetActivatedRule() const{ return m_activatedRule; }
74 inline bool ActivatedRuleHasBeenSet() const { return m_activatedRuleHasBeenSet; }
75 inline void SetActivatedRule(const ActivatedRule& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = value; }
76 inline void SetActivatedRule(ActivatedRule&& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = std::move(value); }
77 inline RuleGroupUpdate& WithActivatedRule(const ActivatedRule& value) { SetActivatedRule(value); return *this;}
78 inline RuleGroupUpdate& WithActivatedRule(ActivatedRule&& value) { SetActivatedRule(std::move(value)); return *this;}
80 private:
81
82 ChangeAction m_action;
83 bool m_actionHasBeenSet = false;
84
85 ActivatedRule m_activatedRule;
86 bool m_activatedRuleHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace WAF
91} // namespace Aws
RuleGroupUpdate & WithActivatedRule(ActivatedRule &&value)
void SetActivatedRule(ActivatedRule &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupUpdate & WithActivatedRule(const ActivatedRule &value)
RuleGroupUpdate & WithAction(const ChangeAction &value)
RuleGroupUpdate & WithAction(ChangeAction &&value)
const ChangeAction & GetAction() const
const ActivatedRule & GetActivatedRule() const
AWS_WAF_API RuleGroupUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API RuleGroupUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActivatedRule(const ActivatedRule &value)
void SetAction(ChangeAction &&value)
void SetAction(const ChangeAction &value)
Aws::Utils::Json::JsonValue JsonValue