AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
StatefulEngineOptionsV2.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/StreamExceptionPolicyV2.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
30 public:
31 AWS_NETWORKFIREWALL_API StatefulEngineOptionsV2() = default;
32 AWS_NETWORKFIREWALL_API StatefulEngineOptionsV2(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API StatefulEngineOptionsV2& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
45 inline StreamExceptionPolicyV2 GetStreamExceptionPolicy() const { return m_streamExceptionPolicy; }
46 inline bool StreamExceptionPolicyHasBeenSet() const { return m_streamExceptionPolicyHasBeenSet; }
48 m_streamExceptionPolicyHasBeenSet = true;
49 m_streamExceptionPolicy = value;
50 }
56
58
62 inline const FlowTimeouts& GetFlowTimeouts() const { return m_flowTimeouts; }
63 inline bool FlowTimeoutsHasBeenSet() const { return m_flowTimeoutsHasBeenSet; }
64 template <typename FlowTimeoutsT = FlowTimeouts>
65 void SetFlowTimeouts(FlowTimeoutsT&& value) {
66 m_flowTimeoutsHasBeenSet = true;
67 m_flowTimeouts = std::forward<FlowTimeoutsT>(value);
68 }
69 template <typename FlowTimeoutsT = FlowTimeouts>
70 StatefulEngineOptionsV2& WithFlowTimeouts(FlowTimeoutsT&& value) {
71 SetFlowTimeouts(std::forward<FlowTimeoutsT>(value));
72 return *this;
73 }
75 private:
77
78 FlowTimeouts m_flowTimeouts;
79 bool m_streamExceptionPolicyHasBeenSet = false;
80 bool m_flowTimeoutsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace NetworkFirewall
85} // namespace Aws
StatefulEngineOptionsV2 & WithStreamExceptionPolicy(StreamExceptionPolicyV2 value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
StatefulEngineOptionsV2 & WithFlowTimeouts(FlowTimeoutsT &&value)
AWS_NETWORKFIREWALL_API StatefulEngineOptionsV2(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API StatefulEngineOptionsV2 & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API StatefulEngineOptionsV2()=default
void SetStreamExceptionPolicy(StreamExceptionPolicyV2 value)