AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
StatefulEngineOptions.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
9#include <aws/network-firewall/model/FlowTimeouts.h>
10#include <aws/network-firewall/model/RuleOrder.h>
11#include <aws/network-firewall/model/StreamExceptionPolicy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace NetworkFirewall {
22namespace Model {
23
35 public:
36 AWS_NETWORKFIREWALL_API StatefulEngineOptions() = default;
37 AWS_NETWORKFIREWALL_API StatefulEngineOptions(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API StatefulEngineOptions& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
58 inline RuleOrder GetRuleOrder() const { return m_ruleOrder; }
59 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
60 inline void SetRuleOrder(RuleOrder value) {
61 m_ruleOrderHasBeenSet = true;
62 m_ruleOrder = value;
63 }
65 SetRuleOrder(value);
66 return *this;
67 }
69
71
91 inline StreamExceptionPolicy GetStreamExceptionPolicy() const { return m_streamExceptionPolicy; }
92 inline bool StreamExceptionPolicyHasBeenSet() const { return m_streamExceptionPolicyHasBeenSet; }
94 m_streamExceptionPolicyHasBeenSet = true;
95 m_streamExceptionPolicy = value;
96 }
102
104
108 inline const FlowTimeouts& GetFlowTimeouts() const { return m_flowTimeouts; }
109 inline bool FlowTimeoutsHasBeenSet() const { return m_flowTimeoutsHasBeenSet; }
110 template <typename FlowTimeoutsT = FlowTimeouts>
111 void SetFlowTimeouts(FlowTimeoutsT&& value) {
112 m_flowTimeoutsHasBeenSet = true;
113 m_flowTimeouts = std::forward<FlowTimeoutsT>(value);
114 }
115 template <typename FlowTimeoutsT = FlowTimeouts>
116 StatefulEngineOptions& WithFlowTimeouts(FlowTimeoutsT&& value) {
117 SetFlowTimeouts(std::forward<FlowTimeoutsT>(value));
118 return *this;
119 }
121 private:
122 RuleOrder m_ruleOrder{RuleOrder::NOT_SET};
123
125
126 FlowTimeouts m_flowTimeouts;
127 bool m_ruleOrderHasBeenSet = false;
128 bool m_streamExceptionPolicyHasBeenSet = false;
129 bool m_flowTimeoutsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace NetworkFirewall
134} // namespace Aws
AWS_NETWORKFIREWALL_API StatefulEngineOptions(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetStreamExceptionPolicy(StreamExceptionPolicy value)
AWS_NETWORKFIREWALL_API StatefulEngineOptions()=default
StatefulEngineOptions & WithFlowTimeouts(FlowTimeoutsT &&value)
AWS_NETWORKFIREWALL_API StatefulEngineOptions & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
StatefulEngineOptions & WithRuleOrder(RuleOrder value)
StatefulEngineOptions & WithStreamExceptionPolicy(StreamExceptionPolicy value)