AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleUpdate.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/Predicate.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 RuleUpdate();
46 AWS_WAFREGIONAL_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue);
47 AWS_WAFREGIONAL_API RuleUpdate& 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 RuleUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
62 inline RuleUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
64
66
70 inline const Predicate& GetPredicate() const{ return m_predicate; }
71 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
72 inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
73 inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
74 inline RuleUpdate& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
75 inline RuleUpdate& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
77 private:
78
79 ChangeAction m_action;
80 bool m_actionHasBeenSet = false;
81
82 Predicate m_predicate;
83 bool m_predicateHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WAFRegional
88} // namespace Aws
AWS_WAFREGIONAL_API RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ChangeAction &&value)
Definition RuleUpdate.h:60
void SetAction(const ChangeAction &value)
Definition RuleUpdate.h:59
RuleUpdate & WithAction(ChangeAction &&value)
Definition RuleUpdate.h:62
RuleUpdate & WithAction(const ChangeAction &value)
Definition RuleUpdate.h:61
RuleUpdate & WithPredicate(Predicate &&value)
Definition RuleUpdate.h:75
RuleUpdate & WithPredicate(const Predicate &value)
Definition RuleUpdate.h:74
AWS_WAFREGIONAL_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetPredicate(const Predicate &value)
Definition RuleUpdate.h:72
void SetPredicate(Predicate &&value)
Definition RuleUpdate.h:73
AWS_WAFREGIONAL_API RuleUpdate()
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Predicate & GetPredicate() const
Definition RuleUpdate.h:70
const ChangeAction & GetAction() const
Definition RuleUpdate.h:57
Aws::Utils::Json::JsonValue JsonValue