AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
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
33 public:
37 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline ApplicationLayerAutomaticResponseStatus GetStatus() const { return m_status; }
45 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 m_statusHasBeenSet = true;
48 m_status = value;
49 }
51 SetStatus(value);
52 return *this;
53 }
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) {
69 m_actionHasBeenSet = true;
70 m_action = std::forward<ActionT>(value);
71 }
72 template <typename ActionT = ResponseAction>
74 SetAction(std::forward<ActionT>(value));
75 return *this;
76 }
78 private:
80
81 ResponseAction m_action;
82 bool m_statusHasBeenSet = false;
83 bool m_actionHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Shield
88} // 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