AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBlock(const BlockAction& value) { m_blockHasBeenSet = true; m_block = value; }
50 inline void SetBlock(BlockAction&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
51 inline DefaultAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;}
52 inline DefaultAction& WithBlock(BlockAction&& value) { SetBlock(std::move(value)); return *this;}
54
56
59 inline const AllowAction& GetAllow() const{ return m_allow; }
60 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
61 inline void SetAllow(const AllowAction& value) { m_allowHasBeenSet = true; m_allow = value; }
62 inline void SetAllow(AllowAction&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); }
63 inline DefaultAction& WithAllow(const AllowAction& value) { SetAllow(value); return *this;}
64 inline DefaultAction& WithAllow(AllowAction&& value) { SetAllow(std::move(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 SetAllow(AllowAction &&value)
void SetBlock(const BlockAction &value)
void SetAllow(const AllowAction &value)
const AllowAction & GetAllow() const
AWS_WAFV2_API DefaultAction & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultAction & WithAllow(const AllowAction &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultAction & WithBlock(BlockAction &&value)
void SetBlock(BlockAction &&value)
const BlockAction & GetBlock() const
DefaultAction & WithBlock(const BlockAction &value)
AWS_WAFV2_API DefaultAction(Aws::Utils::Json::JsonView jsonValue)
DefaultAction & WithAllow(AllowAction &&value)
Aws::Utils::Json::JsonValue JsonValue