AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ApplicationLayerAutomaticResponseConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/shield/Shield_EXPORTS.h>
9#include <aws/shield/model/ApplicationLayerAutomaticResponseStatus.h>
10#include <aws/shield/model/ResponseAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Shield {
21namespace Model {
22
33 public:
35 AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_SHIELD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 }
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
AWS_SHIELD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ApplicationLayerAutomaticResponseConfiguration & WithAction(ActionT &&value)
AWS_SHIELD_API ApplicationLayerAutomaticResponseConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ApplicationLayerAutomaticResponseConfiguration & WithStatus(ApplicationLayerAutomaticResponseStatus value)