AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WebACLUpdate.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
42 {
43 public:
44 AWS_WAF_API WebACLUpdate();
48
49
51
55 inline const ChangeAction& GetAction() const{ return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
58 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
59 inline WebACLUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
60 inline WebACLUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
62
64
71 inline const ActivatedRule& GetActivatedRule() const{ return m_activatedRule; }
72 inline bool ActivatedRuleHasBeenSet() const { return m_activatedRuleHasBeenSet; }
73 inline void SetActivatedRule(const ActivatedRule& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = value; }
74 inline void SetActivatedRule(ActivatedRule&& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = std::move(value); }
75 inline WebACLUpdate& WithActivatedRule(const ActivatedRule& value) { SetActivatedRule(value); return *this;}
76 inline WebACLUpdate& WithActivatedRule(ActivatedRule&& value) { SetActivatedRule(std::move(value)); return *this;}
78 private:
79
80 ChangeAction m_action;
81 bool m_actionHasBeenSet = false;
82
83 ActivatedRule m_activatedRule;
84 bool m_activatedRuleHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace WAF
89} // namespace Aws
void SetActivatedRule(const ActivatedRule &value)
WebACLUpdate & WithAction(const ChangeAction &value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActivatedRule(ActivatedRule &&value)
const ChangeAction & GetAction() const
AWS_WAF_API WebACLUpdate(Aws::Utils::Json::JsonView jsonValue)
WebACLUpdate & WithActivatedRule(ActivatedRule &&value)
const ActivatedRule & GetActivatedRule() const
WebACLUpdate & WithActivatedRule(const ActivatedRule &value)
void SetAction(const ChangeAction &value)
void SetAction(ChangeAction &&value)
AWS_WAF_API WebACLUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
WebACLUpdate & WithAction(ChangeAction &&value)
Aws::Utils::Json::JsonValue JsonValue