AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DefaultAction.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/BlockAction.h>
9#include <aws/wafv2/model/AllowAction.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 WAFV2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_WAFV2_API DefaultAction() = default;
38 AWS_WAFV2_API DefaultAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const BlockAction& GetBlock() const { return m_block; }
48 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
49 template<typename BlockT = BlockAction>
50 void SetBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
51 template<typename BlockT = BlockAction>
52 DefaultAction& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
54
56
59 inline const AllowAction& GetAllow() const { return m_allow; }
60 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
61 template<typename AllowT = AllowAction>
62 void SetAllow(AllowT&& value) { m_allowHasBeenSet = true; m_allow = std::forward<AllowT>(value); }
63 template<typename AllowT = AllowAction>
64 DefaultAction& WithAllow(AllowT&& value) { SetAllow(std::forward<AllowT>(value)); return *this;}
66 private:
67
68 BlockAction m_block;
69 bool m_blockHasBeenSet = false;
70
71 AllowAction m_allow;
72 bool m_allowHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace WAFV2
77} // namespace Aws
void SetBlock(BlockT &&value)
const AllowAction & GetAllow() const
AWS_WAFV2_API DefaultAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllow(AllowT &&value)
DefaultAction & WithBlock(BlockT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultAction & WithAllow(AllowT &&value)
const BlockAction & GetBlock() const
AWS_WAFV2_API DefaultAction()=default
AWS_WAFV2_API DefaultAction(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue