AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 ChangeAction GetAction() const { return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 inline void SetAction(ChangeAction value) { m_actionHasBeenSet = true; m_action = value; }
60 inline RuleUpdate& WithAction(ChangeAction value) { SetAction(value); return *this;}
62
64
68 inline const Predicate& GetPredicate() const { return m_predicate; }
69 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
70 template<typename PredicateT = Predicate>
71 void SetPredicate(PredicateT&& value) { m_predicateHasBeenSet = true; m_predicate = std::forward<PredicateT>(value); }
72 template<typename PredicateT = Predicate>
73 RuleUpdate& WithPredicate(PredicateT&& value) { SetPredicate(std::forward<PredicateT>(value)); return *this;}
75 private:
76
78 bool m_actionHasBeenSet = false;
79
80 Predicate m_predicate;
81 bool m_predicateHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace WAFRegional
86} // namespace Aws
AWS_WAFREGIONAL_API RuleUpdate()=default
AWS_WAFREGIONAL_API RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
ChangeAction GetAction() const
Definition RuleUpdate.h:57
RuleUpdate & WithPredicate(PredicateT &&value)
Definition RuleUpdate.h:73
AWS_WAFREGIONAL_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ChangeAction value)
Definition RuleUpdate.h:59
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPredicate(PredicateT &&value)
Definition RuleUpdate.h:71
const Predicate & GetPredicate() const
Definition RuleUpdate.h:68
RuleUpdate & WithAction(ChangeAction value)
Definition RuleUpdate.h:60
Aws::Utils::Json::JsonValue JsonValue