7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/RuleGroupSourceListDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/model/RuleGroupSourceStatelessRulesAndCustomActionsDetails.h>
12#include <aws/securityhub/model/RuleGroupSourceStatefulRulesDetails.h>
51 template<
typename RulesSourceListT = RuleGroupSourceListDetails>
52 void SetRulesSourceList(RulesSourceListT&& value) { m_rulesSourceListHasBeenSet =
true; m_rulesSourceList = std::forward<RulesSourceListT>(value); }
53 template<
typename RulesSourceListT = RuleGroupSourceListDetails>
64 template<
typename RulesStringT = Aws::String>
65 void SetRulesString(RulesStringT&& value) { m_rulesStringHasBeenSet =
true; m_rulesString = std::forward<RulesStringT>(value); }
66 template<
typename RulesStringT = Aws::String>
76 template<
typename StatefulRulesT = Aws::Vector<RuleGroupSourceStatefulRulesDetails>>
77 void SetStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet =
true; m_statefulRules = std::forward<StatefulRulesT>(value); }
78 template<
typename StatefulRulesT = Aws::Vector<RuleGroupSourceStatefulRulesDetails>>
80 template<
typename StatefulRulesT = RuleGroupSourceStatefulRulesDetails>
81 RuleGroupSource&
AddStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet =
true; m_statefulRules.emplace_back(std::forward<StatefulRulesT>(value));
return *
this; }
90 template<
typename StatelessRulesAndCustomActionsT = RuleGroupSourceStatelessRulesAndCustomActionsDetails>
91 void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT&& value) { m_statelessRulesAndCustomActionsHasBeenSet =
true; m_statelessRulesAndCustomActions = std::forward<StatelessRulesAndCustomActionsT>(value); }
92 template<
typename StatelessRulesAndCustomActionsT = RuleGroupSourceStatelessRulesAndCustomActionsDetails>
98 bool m_rulesSourceListHasBeenSet =
false;
101 bool m_rulesStringHasBeenSet =
false;
104 bool m_statefulRulesHasBeenSet =
false;
107 bool m_statelessRulesAndCustomActionsHasBeenSet =
false;
RuleGroupSource & WithStatefulRules(StatefulRulesT &&value)
bool StatelessRulesAndCustomActionsHasBeenSet() const
const RuleGroupSourceStatelessRulesAndCustomActionsDetails & GetStatelessRulesAndCustomActions() const
void SetRulesString(RulesStringT &&value)
void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
const Aws::String & GetRulesString() const
RuleGroupSource & WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
AWS_SECURITYHUB_API RuleGroupSource(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSource & WithRulesString(RulesStringT &&value)
AWS_SECURITYHUB_API RuleGroupSource & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RulesSourceListHasBeenSet() const
RuleGroupSource & AddStatefulRules(StatefulRulesT &&value)
const Aws::Vector< RuleGroupSourceStatefulRulesDetails > & GetStatefulRules() const
RuleGroupSource & WithRulesSourceList(RulesSourceListT &&value)
AWS_SECURITYHUB_API RuleGroupSource()=default
bool StatefulRulesHasBeenSet() const
bool RulesStringHasBeenSet() const
void SetRulesSourceList(RulesSourceListT &&value)
void SetStatefulRules(StatefulRulesT &&value)
const RuleGroupSourceListDetails & GetRulesSourceList() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue