7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/CaptchaConfig.h>
11#include <aws/wafv2/model/ChallengeConfig.h>
12#include <aws/wafv2/model/Label.h>
13#include <aws/wafv2/model/OverrideAction.h>
14#include <aws/wafv2/model/RuleAction.h>
15#include <aws/wafv2/model/Statement.h>
16#include <aws/wafv2/model/VisibilityConfig.h>
40 AWS_WAFV2_API
Rule() =
default;
54 template <
typename NameT = Aws::String>
56 m_nameHasBeenSet =
true;
57 m_name = std::forward<NameT>(value);
59 template <
typename NameT = Aws::String>
61 SetName(std::forward<NameT>(value));
76 m_priorityHasBeenSet =
true;
92 template <
typename StatementT = Statement>
94 m_statementHasBeenSet =
true;
95 m_statement = std::forward<StatementT>(value);
97 template <
typename StatementT = Statement>
120 template <
typename ActionT = RuleAction>
122 m_actionHasBeenSet =
true;
123 m_action = std::forward<ActionT>(value);
125 template <
typename ActionT = RuleAction>
147 template <
typename Overr
ideActionT = Overr
ideAction>
149 m_overrideActionHasBeenSet =
true;
150 m_overrideAction = std::forward<OverrideActionT>(value);
152 template <
typename Overr
ideActionT = Overr
ideAction>
181 template <
typename RuleLabelsT = Aws::Vector<Label>>
183 m_ruleLabelsHasBeenSet =
true;
184 m_ruleLabels = std::forward<RuleLabelsT>(value);
186 template <
typename RuleLabelsT = Aws::Vector<Label>>
191 template <
typename RuleLabelsT = Label>
193 m_ruleLabelsHasBeenSet =
true;
194 m_ruleLabels.emplace_back(std::forward<RuleLabelsT>(value));
208 template <
typename VisibilityConfigT = VisibilityConfig>
210 m_visibilityConfigHasBeenSet =
true;
211 m_visibilityConfig = std::forward<VisibilityConfigT>(value);
213 template <
typename VisibilityConfigT = VisibilityConfig>
228 template <
typename CaptchaConfigT = CaptchaConfig>
230 m_captchaConfigHasBeenSet =
true;
231 m_captchaConfig = std::forward<CaptchaConfigT>(value);
233 template <
typename CaptchaConfigT = CaptchaConfig>
248 template <
typename ChallengeConfigT = ChallengeConfig>
250 m_challengeConfigHasBeenSet =
true;
251 m_challengeConfig = std::forward<ChallengeConfigT>(value);
253 template <
typename ChallengeConfigT = ChallengeConfig>
264 Statement m_statement;
268 OverrideAction m_overrideAction;
272 VisibilityConfig m_visibilityConfig;
274 CaptchaConfig m_captchaConfig;
276 ChallengeConfig m_challengeConfig;
277 bool m_nameHasBeenSet =
false;
278 bool m_priorityHasBeenSet =
false;
279 bool m_statementHasBeenSet =
false;
280 bool m_actionHasBeenSet =
false;
281 bool m_overrideActionHasBeenSet =
false;
282 bool m_ruleLabelsHasBeenSet =
false;
283 bool m_visibilityConfigHasBeenSet =
false;
284 bool m_captchaConfigHasBeenSet =
false;
285 bool m_challengeConfigHasBeenSet =
false;
AWS_WAFV2_API Rule()=default
Rule & WithName(NameT &&value)
void SetAction(ActionT &&value)
Rule & WithStatement(StatementT &&value)
const Aws::String & GetName() const
bool NameHasBeenSet() const
const Aws::Vector< Label > & GetRuleLabels() const
Rule & WithCaptchaConfig(CaptchaConfigT &&value)
const ChallengeConfig & GetChallengeConfig() const
bool RuleLabelsHasBeenSet() const
AWS_WAFV2_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithChallengeConfig(ChallengeConfigT &&value)
const OverrideAction & GetOverrideAction() const
const Statement & GetStatement() const
Rule & WithAction(ActionT &&value)
Rule & WithPriority(int value)
void SetChallengeConfig(ChallengeConfigT &&value)
bool StatementHasBeenSet() const
Rule & WithOverrideAction(OverrideActionT &&value)
Rule & WithRuleLabels(RuleLabelsT &&value)
bool VisibilityConfigHasBeenSet() const
bool CaptchaConfigHasBeenSet() const
bool PriorityHasBeenSet() const
AWS_WAFV2_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPriority(int value)
void SetStatement(StatementT &&value)
const VisibilityConfig & GetVisibilityConfig() const
void SetVisibilityConfig(VisibilityConfigT &&value)
void SetName(NameT &&value)
void SetCaptchaConfig(CaptchaConfigT &&value)
const RuleAction & GetAction() const
void SetRuleLabels(RuleLabelsT &&value)
const CaptchaConfig & GetCaptchaConfig() const
bool ActionHasBeenSet() const
bool OverrideActionHasBeenSet() const
Rule & WithVisibilityConfig(VisibilityConfigT &&value)
void SetOverrideAction(OverrideActionT &&value)
bool ChallengeConfigHasBeenSet() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & AddRuleLabels(RuleLabelsT &&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