AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
DefaultAction.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/AllowAction.h>
9#include <aws/wafv2/model/BlockAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
31 public:
32 AWS_WAFV2_API DefaultAction() = default;
33 AWS_WAFV2_API DefaultAction(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const BlockAction& GetBlock() const { return m_block; }
42 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
43 template <typename BlockT = BlockAction>
44 void SetBlock(BlockT&& value) {
45 m_blockHasBeenSet = true;
46 m_block = std::forward<BlockT>(value);
47 }
48 template <typename BlockT = BlockAction>
49 DefaultAction& WithBlock(BlockT&& value) {
50 SetBlock(std::forward<BlockT>(value));
51 return *this;
52 }
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) {
63 m_allowHasBeenSet = true;
64 m_allow = std::forward<AllowT>(value);
65 }
66 template <typename AllowT = AllowAction>
67 DefaultAction& WithAllow(AllowT&& value) {
68 SetAllow(std::forward<AllowT>(value));
69 return *this;
70 }
72 private:
73 BlockAction m_block;
74
75 AllowAction m_allow;
76 bool m_blockHasBeenSet = false;
77 bool m_allowHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace WAFV2
82} // 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