7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/Header.h>
11#include <aws/network-firewall/model/RuleOption.h>
12#include <aws/network-firewall/model/StatefulAction.h>
22namespace NetworkFirewall {
38 AWS_NETWORKFIREWALL_API
StatefulRule(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
66 m_actionHasBeenSet =
true;
82 template <
typename HeaderT = Header>
84 m_headerHasBeenSet =
true;
85 m_header = std::forward<HeaderT>(value);
87 template <
typename HeaderT = Header>
101 template <
typename RuleOptionsT = Aws::Vector<RuleOption>>
103 m_ruleOptionsHasBeenSet =
true;
104 m_ruleOptions = std::forward<RuleOptionsT>(value);
106 template <
typename RuleOptionsT = Aws::Vector<RuleOption>>
111 template <
typename RuleOptionsT = RuleOption>
113 m_ruleOptionsHasBeenSet =
true;
114 m_ruleOptions.emplace_back(std::forward<RuleOptionsT>(value));
124 bool m_actionHasBeenSet =
false;
125 bool m_headerHasBeenSet =
false;
126 bool m_ruleOptionsHasBeenSet =
false;
bool RuleOptionsHasBeenSet() const
bool ActionHasBeenSet() const
AWS_NETWORKFIREWALL_API StatefulRule()=default
const Aws::Vector< RuleOption > & GetRuleOptions() const
void SetRuleOptions(RuleOptionsT &&value)
AWS_NETWORKFIREWALL_API StatefulRule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAction(StatefulAction value)
bool HeaderHasBeenSet() const
StatefulRule & WithHeader(HeaderT &&value)
void SetHeader(HeaderT &&value)
StatefulRule & WithRuleOptions(RuleOptionsT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
StatefulRule & WithAction(StatefulAction value)
const Header & GetHeader() const
StatefulRule & AddRuleOptions(RuleOptionsT &&value)
AWS_NETWORKFIREWALL_API StatefulRule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
StatefulAction GetAction() const
std::vector< T, Aws::Allocator< T > > Vector