AWS SDK for C++  1.9.153
AWS SDK for C++
RuleUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
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 WAF
23 {
24 namespace Model
25 {
26 
43  {
44  public:
49 
50 
56  inline const ChangeAction& GetAction() const{ return m_action; }
57 
63  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
64 
70  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
71 
77  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
78 
84  inline RuleUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
85 
91  inline RuleUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
92 
93 
98  inline const Predicate& GetPredicate() const{ return m_predicate; }
99 
104  inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
105 
110  inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
111 
116  inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
117 
122  inline RuleUpdate& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
123 
128  inline RuleUpdate& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
129 
130  private:
131 
132  ChangeAction m_action;
133  bool m_actionHasBeenSet;
134 
135  Predicate m_predicate;
136  bool m_predicateHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace WAF
141 } // namespace Aws
Aws::WAF::Model::Predicate
Definition: Predicate.h:46
Predicate.h
Aws::WAF::Model::RuleUpdate::GetPredicate
const Predicate & GetPredicate() const
Definition: RuleUpdate.h:98
Aws::WAF::Model::RuleUpdate::SetAction
void SetAction(const ChangeAction &value)
Definition: RuleUpdate.h:70
Aws::WAF::Model::RuleUpdate::operator=
RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::ChangeAction
ChangeAction
Definition: ChangeAction.h:17
Aws::WAF::Model::RuleUpdate::PredicateHasBeenSet
bool PredicateHasBeenSet() const
Definition: RuleUpdate.h:104
Aws::WAF::Model::RuleUpdate::WithAction
RuleUpdate & WithAction(const ChangeAction &value)
Definition: RuleUpdate.h:84
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::RuleUpdate::WithPredicate
RuleUpdate & WithPredicate(Predicate &&value)
Definition: RuleUpdate.h:128
Aws::WAF::Model::RuleUpdate::RuleUpdate
RuleUpdate()
Aws::WAF::Model::RuleUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAF::Model::RuleUpdate::SetPredicate
void SetPredicate(Predicate &&value)
Definition: RuleUpdate.h:116
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::RuleUpdate::RuleUpdate
RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
ChangeAction.h
WAF_EXPORTS.h
Aws::WAF::Model::RuleUpdate
Definition: RuleUpdate.h:43
Aws::WAF::Model::RuleUpdate::WithAction
RuleUpdate & WithAction(ChangeAction &&value)
Definition: RuleUpdate.h:91
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::RuleUpdate::WithPredicate
RuleUpdate & WithPredicate(const Predicate &value)
Definition: RuleUpdate.h:122
Aws::WAF::Model::RuleUpdate::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: RuleUpdate.h:63
Aws::WAF::Model::RuleUpdate::SetAction
void SetAction(ChangeAction &&value)
Definition: RuleUpdate.h:77
Aws::WAF::Model::RuleUpdate::GetAction
const ChangeAction & GetAction() const
Definition: RuleUpdate.h:56
Aws::WAF::Model::RuleUpdate::SetPredicate
void SetPredicate(const Predicate &value)
Definition: RuleUpdate.h:110