AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 const ApplicationLayerAutomaticResponseStatus& GetStatus() const{ return m_status; }
51 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
52 inline void SetStatus(const ApplicationLayerAutomaticResponseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
53 inline void SetStatus(ApplicationLayerAutomaticResponseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
57
59
67 inline const ResponseAction& GetAction() const{ return m_action; }
68 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
69 inline void SetAction(const ResponseAction& value) { m_actionHasBeenSet = true; m_action = value; }
70 inline void SetAction(ResponseAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
72 inline ApplicationLayerAutomaticResponseConfiguration& WithAction(ResponseAction&& value) { SetAction(std::move(value)); return *this;}
74 private:
75
77 bool m_statusHasBeenSet = false;
78
79 ResponseAction m_action;
80 bool m_actionHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Shield
85} // namespace Aws
ApplicationLayerAutomaticResponseConfiguration & WithAction(const ResponseAction &value)
ApplicationLayerAutomaticResponseConfiguration & WithAction(ResponseAction &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration(Aws::Utils::Json::JsonView jsonValue)
ApplicationLayerAutomaticResponseConfiguration & WithStatus(const ApplicationLayerAutomaticResponseStatus &value)
AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationLayerAutomaticResponseConfiguration & WithStatus(ApplicationLayerAutomaticResponseStatus &&value)
Aws::Utils::Json::JsonValue JsonValue