AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBlock(const BlockAction& value) { m_blockHasBeenSet = true; m_block = value; }
56 inline void SetBlock(BlockAction&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
57 inline ResponseAction& WithBlock(const BlockAction& value) { SetBlock(value); return *this;}
58 inline ResponseAction& WithBlock(BlockAction&& value) { SetBlock(std::move(value)); return *this;}
60
62
67 inline const CountAction& GetCount() const{ return m_count; }
68 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
69 inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; }
70 inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); }
71 inline ResponseAction& WithCount(const CountAction& value) { SetCount(value); return *this;}
72 inline ResponseAction& WithCount(CountAction&& value) { SetCount(std::move(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)
ResponseAction & WithCount(CountAction &&value)
void SetBlock(BlockAction &&value)
ResponseAction & WithBlock(const BlockAction &value)
void SetBlock(const BlockAction &value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCount(CountAction &&value)
ResponseAction & WithBlock(BlockAction &&value)
const CountAction & GetCount() const
ResponseAction & WithCount(const CountAction &value)
AWS_SHIELD_API ResponseAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const BlockAction & GetBlock() const
void SetCount(const CountAction &value)
Aws::Utils::Json::JsonValue JsonValue