AWS SDK for C++  1.9.107
AWS SDK for C++
DefaultAction.h
Go to the documentation of this file.
1 
6 #pragma once
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 WAFV2
23 {
24 namespace Model
25 {
26 
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 DefaultAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;}
68 
72  inline DefaultAction& 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 DefaultAction& WithAllow(const AllowAction& value) { SetAllow(value); return *this;}
99 
103  inline DefaultAction& WithAllow(AllowAction&& value) { SetAllow(std::move(value)); return *this;}
104 
105  private:
106 
107  BlockAction m_block;
108  bool m_blockHasBeenSet;
109 
110  AllowAction m_allow;
111  bool m_allowHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace WAFV2
116 } // namespace Aws
Aws::WAFV2::Model::BlockAction
Definition: BlockAction.h:35
Aws::WAFV2::Model::DefaultAction::AllowHasBeenSet
bool AllowHasBeenSet() const
Definition: DefaultAction.h:83
Aws::WAFV2::Model::AllowAction
Definition: AllowAction.h:35
BlockAction.h
Aws::WAFV2::Model::DefaultAction::DefaultAction
DefaultAction(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::DefaultAction::SetBlock
void SetBlock(BlockAction &&value)
Definition: DefaultAction.h:62
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AllowAction.h
WAFV2_EXPORTS.h
Aws::WAFV2::Model::DefaultAction::GetAllow
const AllowAction & GetAllow() const
Definition: DefaultAction.h:78
Aws::WAFV2::Model::DefaultAction::WithBlock
DefaultAction & WithBlock(const BlockAction &value)
Definition: DefaultAction.h:67
Aws::WAFV2::Model::DefaultAction::BlockHasBeenSet
bool BlockHasBeenSet() const
Definition: DefaultAction.h:52
Aws::WAFV2::Model::DefaultAction
Definition: DefaultAction.h:36
Aws::WAFV2::Model::DefaultAction::WithBlock
DefaultAction & WithBlock(BlockAction &&value)
Definition: DefaultAction.h:72
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::DefaultAction::GetBlock
const BlockAction & GetBlock() const
Definition: DefaultAction.h:47
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::DefaultAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::DefaultAction::operator=
DefaultAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::DefaultAction::SetBlock
void SetBlock(const BlockAction &value)
Definition: DefaultAction.h:57
Aws::WAFV2::Model::DefaultAction::WithAllow
DefaultAction & WithAllow(const AllowAction &value)
Definition: DefaultAction.h:98
Aws::WAFV2::Model::DefaultAction::SetAllow
void SetAllow(AllowAction &&value)
Definition: DefaultAction.h:93
Aws::WAFV2::Model::DefaultAction::WithAllow
DefaultAction & WithAllow(AllowAction &&value)
Definition: DefaultAction.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::DefaultAction::SetAllow
void SetAllow(const AllowAction &value)
Definition: DefaultAction.h:88
Aws::WAFV2::Model::DefaultAction::DefaultAction
DefaultAction()