AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RuleUpdate.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/ChangeAction.h>
9#include <aws/waf/model/Predicate.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
39 public:
40 AWS_WAF_API RuleUpdate() = default;
41 AWS_WAF_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue);
44
46
51 inline ChangeAction GetAction() const { return m_action; }
52 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
53 inline void SetAction(ChangeAction value) {
54 m_actionHasBeenSet = true;
55 m_action = value;
56 }
58 SetAction(value);
59 return *this;
60 }
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) {
72 m_predicateHasBeenSet = true;
73 m_predicate = std::forward<PredicateT>(value);
74 }
75 template <typename PredicateT = Predicate>
76 RuleUpdate& WithPredicate(PredicateT&& value) {
77 SetPredicate(std::forward<PredicateT>(value));
78 return *this;
79 }
81 private:
83
84 Predicate m_predicate;
85 bool m_actionHasBeenSet = false;
86 bool m_predicateHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace WAF
91} // namespace Aws
RuleUpdate & WithPredicate(PredicateT &&value)
Definition RuleUpdate.h:76
const Predicate & GetPredicate() const
Definition RuleUpdate.h:68
void SetAction(ChangeAction value)
Definition RuleUpdate.h:53
ChangeAction GetAction() const
Definition RuleUpdate.h:51
AWS_WAF_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API RuleUpdate()=default
void SetPredicate(PredicateT &&value)
Definition RuleUpdate.h:71
AWS_WAF_API RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PredicateHasBeenSet() const
Definition RuleUpdate.h:69
RuleUpdate & WithAction(ChangeAction value)
Definition RuleUpdate.h:57
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionHasBeenSet() const
Definition RuleUpdate.h:52
Aws::Utils::Json::JsonValue JsonValue