AWS SDK for C++  1.9.129
AWS SDK for C++
WebACLUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFRegional
23 {
24 namespace Model
25 {
26 
42  {
43  public:
48 
49 
54  inline const ChangeAction& GetAction() const{ return m_action; }
55 
60  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 
66  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
67 
72  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
73 
78  inline WebACLUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
79 
84  inline WebACLUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
85 
86 
94  inline const ActivatedRule& GetActivatedRule() const{ return m_activatedRule; }
95 
103  inline bool ActivatedRuleHasBeenSet() const { return m_activatedRuleHasBeenSet; }
104 
112  inline void SetActivatedRule(const ActivatedRule& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = value; }
113 
121  inline void SetActivatedRule(ActivatedRule&& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = std::move(value); }
122 
130  inline WebACLUpdate& WithActivatedRule(const ActivatedRule& value) { SetActivatedRule(value); return *this;}
131 
139  inline WebACLUpdate& WithActivatedRule(ActivatedRule&& value) { SetActivatedRule(std::move(value)); return *this;}
140 
141  private:
142 
143  ChangeAction m_action;
144  bool m_actionHasBeenSet;
145 
146  ActivatedRule m_activatedRule;
147  bool m_activatedRuleHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace WAFRegional
152 } // namespace Aws
Aws::WAFRegional::Model::WebACLUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFRegional::Model::WebACLUpdate::SetActivatedRule
void SetActivatedRule(ActivatedRule &&value)
Definition: WebACLUpdate.h:121
Aws::WAFRegional::Model::WebACLUpdate::WebACLUpdate
WebACLUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::WebACLUpdate::WithAction
WebACLUpdate & WithAction(ChangeAction &&value)
Definition: WebACLUpdate.h:84
ActivatedRule.h
Aws::WAFRegional::Model::WebACLUpdate::SetAction
void SetAction(ChangeAction &&value)
Definition: WebACLUpdate.h:72
Aws::WAFRegional::Model::WebACLUpdate
Definition: WebACLUpdate.h:42
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
Aws::WAFRegional::Model::WebACLUpdate::ActivatedRuleHasBeenSet
bool ActivatedRuleHasBeenSet() const
Definition: WebACLUpdate.h:103
Aws::WAFRegional::Model::WebACLUpdate::WithActivatedRule
WebACLUpdate & WithActivatedRule(const ActivatedRule &value)
Definition: WebACLUpdate.h:130
Aws::WAFRegional::Model::WebACLUpdate::SetAction
void SetAction(const ChangeAction &value)
Definition: WebACLUpdate.h:66
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFRegional::Model::WebACLUpdate::WithAction
WebACLUpdate & WithAction(const ChangeAction &value)
Definition: WebACLUpdate.h:78
Aws::WAFRegional::Model::ChangeAction
ChangeAction
Definition: ChangeAction.h:17
Aws::WAFRegional::Model::WebACLUpdate::SetActivatedRule
void SetActivatedRule(const ActivatedRule &value)
Definition: WebACLUpdate.h:112
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::WebACLUpdate::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: WebACLUpdate.h:60
Aws::WAFRegional::Model::WebACLUpdate::operator=
WebACLUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::ActivatedRule
Definition: ActivatedRule.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::WebACLUpdate::WebACLUpdate
WebACLUpdate()
ChangeAction.h
Aws::WAFRegional::Model::WebACLUpdate::GetActivatedRule
const ActivatedRule & GetActivatedRule() const
Definition: WebACLUpdate.h:94
Aws::WAFRegional::Model::WebACLUpdate::GetAction
const ChangeAction & GetAction() const
Definition: WebACLUpdate.h:54
Aws::WAFRegional::Model::WebACLUpdate::WithActivatedRule
WebACLUpdate & WithActivatedRule(ActivatedRule &&value)
Definition: WebACLUpdate.h:139