7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/RulesSourceList.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/StatelessRulesAndCustomActions.h>
12#include <aws/network-firewall/model/StatefulRule.h>
25namespace NetworkFirewall
60 template<
typename RulesStringT = Aws::String>
61 void SetRulesString(RulesStringT&& value) { m_rulesStringHasBeenSet =
true; m_rulesString = std::forward<RulesStringT>(value); }
62 template<
typename RulesStringT = Aws::String>
72 template<
typename RulesSourceListT = RulesSourceList>
73 void SetRulesSourceList(RulesSourceListT&& value) { m_rulesSourceListHasBeenSet =
true; m_rulesSourceList = std::forward<RulesSourceListT>(value); }
74 template<
typename RulesSourceListT = RulesSourceList>
89 template<
typename StatefulRulesT = Aws::Vector<StatefulRule>>
90 void SetStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet =
true; m_statefulRules = std::forward<StatefulRulesT>(value); }
91 template<
typename StatefulRulesT = Aws::Vector<StatefulRule>>
93 template<
typename StatefulRulesT = StatefulRule>
94 RulesSource&
AddStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet =
true; m_statefulRules.emplace_back(std::forward<StatefulRulesT>(value));
return *
this; }
103 template<
typename StatelessRulesAndCustomActionsT = StatelessRulesAndCustomActions>
104 void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT&& value) { m_statelessRulesAndCustomActionsHasBeenSet =
true; m_statelessRulesAndCustomActions = std::forward<StatelessRulesAndCustomActionsT>(value); }
105 template<
typename StatelessRulesAndCustomActionsT = StatelessRulesAndCustomActions>
111 bool m_rulesStringHasBeenSet =
false;
114 bool m_rulesSourceListHasBeenSet =
false;
117 bool m_statefulRulesHasBeenSet =
false;
120 bool m_statelessRulesAndCustomActionsHasBeenSet =
false;
void SetRulesSourceList(RulesSourceListT &&value)
RulesSource & WithRulesSourceList(RulesSourceListT &&value)
const StatelessRulesAndCustomActions & GetStatelessRulesAndCustomActions() const
bool RulesStringHasBeenSet() const
void SetRulesString(RulesStringT &&value)
RulesSource & WithRulesString(RulesStringT &&value)
AWS_NETWORKFIREWALL_API RulesSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RulesSource(Aws::Utils::Json::JsonView jsonValue)
void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
bool StatelessRulesAndCustomActionsHasBeenSet() const
const Aws::Vector< StatefulRule > & GetStatefulRules() const
RulesSource & WithStatefulRules(StatefulRulesT &&value)
bool StatefulRulesHasBeenSet() const
AWS_NETWORKFIREWALL_API RulesSource()=default
bool RulesSourceListHasBeenSet() const
RulesSource & WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
RulesSource & AddStatefulRules(StatefulRulesT &&value)
const Aws::String & GetRulesString() const
const RulesSourceList & GetRulesSourceList() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatefulRules(StatefulRulesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue