7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/RuleGroupSourceListDetails.h>
11#include <aws/securityhub/model/RuleGroupSourceStatefulRulesDetails.h>
12#include <aws/securityhub/model/RuleGroupSourceStatelessRulesAndCustomActionsDetails.h>
45 template <
typename RulesSourceListT = RuleGroupSourceListDetails>
47 m_rulesSourceListHasBeenSet =
true;
48 m_rulesSourceList = std::forward<RulesSourceListT>(value);
50 template <
typename RulesSourceListT = RuleGroupSourceListDetails>
64 template <
typename RulesStringT = Aws::String>
66 m_rulesStringHasBeenSet =
true;
67 m_rulesString = std::forward<RulesStringT>(value);
69 template <
typename RulesStringT = Aws::String>
82 template <
typename StatefulRulesT = Aws::Vector<RuleGroupSourceStatefulRulesDetails>>
84 m_statefulRulesHasBeenSet =
true;
85 m_statefulRules = std::forward<StatefulRulesT>(value);
87 template <
typename StatefulRulesT = Aws::Vector<RuleGroupSourceStatefulRulesDetails>>
92 template <
typename StatefulRulesT = RuleGroupSourceStatefulRulesDetails>
94 m_statefulRulesHasBeenSet =
true;
95 m_statefulRules.emplace_back(std::forward<StatefulRulesT>(value));
105 return m_statelessRulesAndCustomActions;
108 template <
typename StatelessRulesAndCustomActionsT = RuleGroupSourceStatelessRulesAndCustomActionsDetails>
110 m_statelessRulesAndCustomActionsHasBeenSet =
true;
111 m_statelessRulesAndCustomActions = std::forward<StatelessRulesAndCustomActionsT>(value);
113 template <
typename StatelessRulesAndCustomActionsT = RuleGroupSourceStatelessRulesAndCustomActionsDetails>
127 bool m_rulesSourceListHasBeenSet =
false;
128 bool m_rulesStringHasBeenSet =
false;
129 bool m_statefulRulesHasBeenSet =
false;
130 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