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-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/ChangeAction.h>
9#include <aws/waf-regional/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 WAFRegional
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_WAFREGIONAL_API RuleGroupUpdate();
46 AWS_WAFREGIONAL_API RuleGroupUpdate(Aws::Utils::Json::JsonView jsonValue);
47 AWS_WAFREGIONAL_API RuleGroupUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
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 WAFRegional
91} // namespace Aws
RuleGroupUpdate & WithAction(const ChangeAction &value)
RuleGroupUpdate & WithAction(ChangeAction &&value)
AWS_WAFREGIONAL_API RuleGroupUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
const ChangeAction & GetAction() const
void SetActivatedRule(const ActivatedRule &value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
const ActivatedRule & GetActivatedRule() const
RuleGroupUpdate & WithActivatedRule(ActivatedRule &&value)
RuleGroupUpdate & WithActivatedRule(const ActivatedRule &value)
void SetActivatedRule(ActivatedRule &&value)
AWS_WAFREGIONAL_API RuleGroupUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetAction(const ChangeAction &value)
Aws::Utils::Json::JsonValue JsonValue