AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResponseAction.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/BlockAction.h>
9#include <aws/shield/model/CountAction.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 Shield
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_SHIELD_API ResponseAction() = default;
42 AWS_SHIELD_API ResponseAction(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const BlockAction& GetBlock() const { return m_block; }
54 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
55 template<typename BlockT = BlockAction>
56 void SetBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
57 template<typename BlockT = BlockAction>
58 ResponseAction& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
60
62
67 inline const CountAction& GetCount() const { return m_count; }
68 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
69 template<typename CountT = CountAction>
70 void SetCount(CountT&& value) { m_countHasBeenSet = true; m_count = std::forward<CountT>(value); }
71 template<typename CountT = CountAction>
72 ResponseAction& WithCount(CountT&& value) { SetCount(std::forward<CountT>(value)); return *this;}
74 private:
75
76 BlockAction m_block;
77 bool m_blockHasBeenSet = false;
78
79 CountAction m_count;
80 bool m_countHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Shield
85} // namespace Aws
AWS_SHIELD_API ResponseAction(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API ResponseAction()=default
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseAction & WithCount(CountT &&value)
ResponseAction & WithBlock(BlockT &&value)
const CountAction & GetCount() const
AWS_SHIELD_API ResponseAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const BlockAction & GetBlock() const
Aws::Utils::Json::JsonValue JsonValue