AWS SDK for C++  1.9.108
AWS SDK for C++
RuleAction.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
47  inline const BlockAction& GetBlock() const{ return m_block; }
48 
52  inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
53 
57  inline void SetBlock(const BlockAction& value) { m_blockHasBeenSet = true; m_block = value; }
58 
62  inline void SetBlock(BlockAction&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
63 
67  inline RuleAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;}
68 
72  inline RuleAction& WithBlock(BlockAction&& value) { SetBlock(std::move(value)); return *this;}
73 
74 
78  inline const AllowAction& GetAllow() const{ return m_allow; }
79 
83  inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
84 
88  inline void SetAllow(const AllowAction& value) { m_allowHasBeenSet = true; m_allow = value; }
89 
93  inline void SetAllow(AllowAction&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); }
94 
98  inline RuleAction& WithAllow(const AllowAction& value) { SetAllow(value); return *this;}
99 
103  inline RuleAction& WithAllow(AllowAction&& value) { SetAllow(std::move(value)); return *this;}
104 
105 
109  inline const CountAction& GetCount() const{ return m_count; }
110 
114  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
115 
119  inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; }
120 
124  inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); }
125 
129  inline RuleAction& WithCount(const CountAction& value) { SetCount(value); return *this;}
130 
134  inline RuleAction& WithCount(CountAction&& value) { SetCount(std::move(value)); return *this;}
135 
136  private:
137 
138  BlockAction m_block;
139  bool m_blockHasBeenSet;
140 
141  AllowAction m_allow;
142  bool m_allowHasBeenSet;
143 
144  CountAction m_count;
145  bool m_countHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace WAFV2
150 } // namespace Aws
Aws::WAFV2::Model::RuleAction::CountHasBeenSet
bool CountHasBeenSet() const
Definition: RuleAction.h:114
Aws::WAFV2::Model::BlockAction
Definition: BlockAction.h:35
Aws::WAFV2::Model::RuleAction::WithAllow
RuleAction & WithAllow(const AllowAction &value)
Definition: RuleAction.h:98
Aws::WAFV2::Model::RuleAction::SetCount
void SetCount(CountAction &&value)
Definition: RuleAction.h:124
Aws::WAFV2::Model::AllowAction
Definition: AllowAction.h:35
Aws::WAFV2::Model::RuleAction::WithBlock
RuleAction & WithBlock(BlockAction &&value)
Definition: RuleAction.h:72
Aws::WAFV2::Model::RuleAction::GetBlock
const BlockAction & GetBlock() const
Definition: RuleAction.h:47
BlockAction.h
Aws::WAFV2::Model::RuleAction::SetAllow
void SetAllow(AllowAction &&value)
Definition: RuleAction.h:93
Aws::WAFV2::Model::RuleAction
Definition: RuleAction.h:36
Aws::WAFV2::Model::RuleAction::AllowHasBeenSet
bool AllowHasBeenSet() const
Definition: RuleAction.h:83
Aws::WAFV2::Model::RuleAction::GetAllow
const AllowAction & GetAllow() const
Definition: RuleAction.h:78
Aws::WAFV2::Model::RuleAction::SetBlock
void SetBlock(BlockAction &&value)
Definition: RuleAction.h:62
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AllowAction.h
Aws::WAFV2::Model::RuleAction::SetAllow
void SetAllow(const AllowAction &value)
Definition: RuleAction.h:88
Aws::WAFV2::Model::RuleAction::WithBlock
RuleAction & WithBlock(const BlockAction &value)
Definition: RuleAction.h:67
Aws::WAFV2::Model::RuleAction::WithCount
RuleAction & WithCount(CountAction &&value)
Definition: RuleAction.h:134
WAFV2_EXPORTS.h
Aws::WAFV2::Model::RuleAction::RuleAction
RuleAction(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RuleAction::WithAllow
RuleAction & WithAllow(AllowAction &&value)
Definition: RuleAction.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::RuleAction::SetCount
void SetCount(const CountAction &value)
Definition: RuleAction.h:119
Aws::WAFV2::Model::RuleAction::WithCount
RuleAction & WithCount(const CountAction &value)
Definition: RuleAction.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::RuleAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::RuleAction::SetBlock
void SetBlock(const BlockAction &value)
Definition: RuleAction.h:57
Aws::WAFV2::Model::RuleAction::GetCount
const CountAction & GetCount() const
Definition: RuleAction.h:109
Aws::WAFV2::Model::RuleAction::BlockHasBeenSet
bool BlockHasBeenSet() const
Definition: RuleAction.h:52
Aws::WAFV2::Model::RuleAction::operator=
RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RuleAction::RuleAction
RuleAction()
CountAction.h
Aws::WAFV2::Model::CountAction
Definition: CountAction.h:35