AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Shield {
21namespace Model {
22
35 public:
36 AWS_SHIELD_API ResponseAction() = default;
37 AWS_SHIELD_API ResponseAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
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) {
51 m_blockHasBeenSet = true;
52 m_block = std::forward<BlockT>(value);
53 }
54 template <typename BlockT = BlockAction>
55 ResponseAction& WithBlock(BlockT&& value) {
56 SetBlock(std::forward<BlockT>(value));
57 return *this;
58 }
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) {
71 m_countHasBeenSet = true;
72 m_count = std::forward<CountT>(value);
73 }
74 template <typename CountT = CountAction>
75 ResponseAction& WithCount(CountT&& value) {
76 SetCount(std::forward<CountT>(value));
77 return *this;
78 }
80 private:
81 BlockAction m_block;
82
83 CountAction m_count;
84 bool m_blockHasBeenSet = false;
85 bool m_countHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Shield
90} // 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