7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/MatchAttributes.h>
21namespace NetworkFirewall {
35 AWS_NETWORKFIREWALL_API
RuleDefinition(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
47 template <
typename MatchAttributesT = MatchAttributes>
49 m_matchAttributesHasBeenSet =
true;
50 m_matchAttributes = std::forward<MatchAttributesT>(value);
52 template <
typename MatchAttributesT = MatchAttributes>
87 template <
typename ActionsT = Aws::Vector<Aws::String>>
89 m_actionsHasBeenSet =
true;
90 m_actions = std::forward<ActionsT>(value);
92 template <
typename ActionsT = Aws::Vector<Aws::String>>
97 template <
typename ActionsT = Aws::String>
99 m_actionsHasBeenSet =
true;
100 m_actions.emplace_back(std::forward<ActionsT>(value));
108 bool m_matchAttributesHasBeenSet =
false;
109 bool m_actionsHasBeenSet =
false;
AWS_NETWORKFIREWALL_API RuleDefinition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool MatchAttributesHasBeenSet() const
RuleDefinition & WithMatchAttributes(MatchAttributesT &&value)
const Aws::Vector< Aws::String > & GetActions() const
RuleDefinition & WithActions(ActionsT &&value)
RuleDefinition & AddActions(ActionsT &&value)
const MatchAttributes & GetMatchAttributes() const
AWS_NETWORKFIREWALL_API RuleDefinition()=default
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetMatchAttributes(MatchAttributesT &&value)
AWS_NETWORKFIREWALL_API RuleDefinition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool ActionsHasBeenSet() const
void SetActions(ActionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector