AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ApplicationLayerAutomaticResponseConfiguration.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/ApplicationLayerAutomaticResponseStatus.h>
9#include <aws/shield/model/ResponseAction.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
37 {
38 public:
42 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline ApplicationLayerAutomaticResponseStatus GetStatus() const { return m_status; }
51 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
52 inline void SetStatus(ApplicationLayerAutomaticResponseStatus value) { m_statusHasBeenSet = true; m_status = value; }
55
57
65 inline const ResponseAction& GetAction() const { return m_action; }
66 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
67 template<typename ActionT = ResponseAction>
68 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
69 template<typename ActionT = ResponseAction>
70 ApplicationLayerAutomaticResponseConfiguration& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
72 private:
73
75 bool m_statusHasBeenSet = false;
76
77 ResponseAction m_action;
78 bool m_actionHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Shield
83} // namespace Aws
ApplicationLayerAutomaticResponseConfiguration & WithAction(ActionT &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationLayerAutomaticResponseConfiguration & WithStatus(ApplicationLayerAutomaticResponseStatus value)
Aws::Utils::Json::JsonValue JsonValue