7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/StatefulAction.h>
9#include <aws/network-firewall/model/Header.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/RuleOption.h>
24namespace NetworkFirewall
82 template<
typename HeaderT = Header>
83 void SetHeader(HeaderT&& value) { m_headerHasBeenSet =
true; m_header = std::forward<HeaderT>(value); }
84 template<
typename HeaderT = Header>
95 template<
typename RuleOptionsT = Aws::Vector<RuleOption>>
96 void SetRuleOptions(RuleOptionsT&& value) { m_ruleOptionsHasBeenSet =
true; m_ruleOptions = std::forward<RuleOptionsT>(value); }
97 template<
typename RuleOptionsT = Aws::Vector<RuleOption>>
99 template<
typename RuleOptionsT = RuleOption>
100 StatefulRule&
AddRuleOptions(RuleOptionsT&& value) { m_ruleOptionsHasBeenSet =
true; m_ruleOptions.emplace_back(std::forward<RuleOptionsT>(value));
return *
this; }
105 bool m_actionHasBeenSet =
false;
108 bool m_headerHasBeenSet =
false;
111 bool m_ruleOptionsHasBeenSet =
false;
bool RuleOptionsHasBeenSet() const
bool ActionHasBeenSet() const
AWS_NETWORKFIREWALL_API StatefulRule()=default
AWS_NETWORKFIREWALL_API StatefulRule(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RuleOption > & GetRuleOptions() const
void SetRuleOptions(RuleOptionsT &&value)
void SetAction(StatefulAction value)
bool HeaderHasBeenSet() const
StatefulRule & WithHeader(HeaderT &&value)
void SetHeader(HeaderT &&value)
StatefulRule & WithRuleOptions(RuleOptionsT &&value)
StatefulRule & WithAction(StatefulAction value)
const Header & GetHeader() const
AWS_NETWORKFIREWALL_API StatefulRule & operator=(Aws::Utils::Json::JsonView jsonValue)
StatefulRule & AddRuleOptions(RuleOptionsT &&value)
StatefulAction GetAction() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue