7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/Statement.h>
10#include <aws/wafv2/model/RuleAction.h>
11#include <aws/wafv2/model/OverrideAction.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/wafv2/model/VisibilityConfig.h>
14#include <aws/wafv2/model/CaptchaConfig.h>
15#include <aws/wafv2/model/ChallengeConfig.h>
16#include <aws/wafv2/model/Label.h>
62 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
77 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
161 inline Rule&
AddRuleLabels(
const Label& value) { m_ruleLabelsHasBeenSet =
true; m_ruleLabels.push_back(value);
return *
this; }
162 inline Rule&
AddRuleLabels(
Label&& value) { m_ruleLabelsHasBeenSet =
true; m_ruleLabels.push_back(std::move(value));
return *
this; }
210 bool m_nameHasBeenSet =
false;
213 bool m_priorityHasBeenSet =
false;
216 bool m_statementHasBeenSet =
false;
219 bool m_actionHasBeenSet =
false;
222 bool m_overrideActionHasBeenSet =
false;
225 bool m_ruleLabelsHasBeenSet =
false;
228 bool m_visibilityConfigHasBeenSet =
false;
231 bool m_captchaConfigHasBeenSet =
false;
234 bool m_challengeConfigHasBeenSet =
false;
Rule & WithCaptchaConfig(CaptchaConfig &&value)
void SetRuleLabels(Aws::Vector< Label > &&value)
Rule & WithCaptchaConfig(const CaptchaConfig &value)
const Aws::String & GetName() const
bool NameHasBeenSet() const
const Aws::Vector< Label > & GetRuleLabels() const
void SetOverrideAction(const OverrideAction &value)
Rule & WithRuleLabels(const Aws::Vector< Label > &value)
void SetOverrideAction(OverrideAction &&value)
const ChallengeConfig & GetChallengeConfig() const
Rule & WithStatement(const Statement &value)
Rule & WithChallengeConfig(const ChallengeConfig &value)
void SetRuleLabels(const Aws::Vector< Label > &value)
bool RuleLabelsHasBeenSet() const
AWS_WAFV2_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithAction(const RuleAction &value)
const OverrideAction & GetOverrideAction() const
void SetCaptchaConfig(CaptchaConfig &&value)
const Statement & GetStatement() const
Rule & WithOverrideAction(OverrideAction &&value)
Rule & WithStatement(Statement &&value)
Rule & WithPriority(int value)
void SetName(const Aws::String &value)
void SetName(const char *value)
Rule & AddRuleLabels(const Label &value)
void SetChallengeConfig(ChallengeConfig &&value)
Rule & WithVisibilityConfig(VisibilityConfig &&value)
Rule & AddRuleLabels(Label &&value)
bool StatementHasBeenSet() const
bool VisibilityConfigHasBeenSet() const
Rule & WithVisibilityConfig(const VisibilityConfig &value)
bool CaptchaConfigHasBeenSet() const
bool PriorityHasBeenSet() const
AWS_WAFV2_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithAction(RuleAction &&value)
void SetPriority(int value)
void SetVisibilityConfig(const VisibilityConfig &value)
const VisibilityConfig & GetVisibilityConfig() const
void SetName(Aws::String &&value)
Rule & WithRuleLabels(Aws::Vector< Label > &&value)
void SetStatement(Statement &&value)
Rule & WithName(Aws::String &&value)
const RuleAction & GetAction() const
Rule & WithName(const Aws::String &value)
const CaptchaConfig & GetCaptchaConfig() const
bool ActionHasBeenSet() const
void SetCaptchaConfig(const CaptchaConfig &value)
Rule & WithChallengeConfig(ChallengeConfig &&value)
Rule & WithName(const char *value)
bool OverrideActionHasBeenSet() const
void SetAction(RuleAction &&value)
void SetAction(const RuleAction &value)
bool ChallengeConfigHasBeenSet() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVisibilityConfig(VisibilityConfig &&value)
void SetStatement(const Statement &value)
Rule & WithOverrideAction(const OverrideAction &value)
void SetChallengeConfig(const ChallengeConfig &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