7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/model/RateKey.h>
11#include <aws/waf-regional/model/Predicate.h>
75 inline void SetRuleId(
const char* value) { m_ruleIdHasBeenSet =
true; m_ruleId.assign(value); }
90 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
109 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
143 inline void SetRateKey(
RateKey&& value) { m_rateKeyHasBeenSet =
true; m_rateKey = std::move(value); }
158 inline void SetRateLimit(
long long value) { m_rateLimitHasBeenSet =
true; m_rateLimit = value; }
164 bool m_ruleIdHasBeenSet =
false;
167 bool m_nameHasBeenSet =
false;
170 bool m_metricNameHasBeenSet =
false;
173 bool m_matchPredicatesHasBeenSet =
false;
176 bool m_rateKeyHasBeenSet =
false;
178 long long m_rateLimit;
179 bool m_rateLimitHasBeenSet =
false;
void SetRateLimit(long long value)
void SetRuleId(Aws::String &&value)
void SetName(const char *value)
AWS_WAFREGIONAL_API RateBasedRule & operator=(Aws::Utils::Json::JsonView jsonValue)
RateBasedRule & WithMatchPredicates(const Aws::Vector< Predicate > &value)
bool MatchPredicatesHasBeenSet() const
void SetRateKey(const RateKey &value)
RateBasedRule & WithMetricName(Aws::String &&value)
long long GetRateLimit() const
RateBasedRule & WithRateLimit(long long value)
RateBasedRule & WithName(const char *value)
void SetMetricName(const Aws::String &value)
void SetRuleId(const Aws::String &value)
void SetRuleId(const char *value)
bool RateKeyHasBeenSet() const
RateBasedRule & AddMatchPredicates(const Predicate &value)
void SetMetricName(const char *value)
const Aws::Vector< Predicate > & GetMatchPredicates() const
bool MetricNameHasBeenSet() const
RateBasedRule & WithRateKey(const RateKey &value)
void SetName(Aws::String &&value)
RateBasedRule & WithName(Aws::String &&value)
void SetMatchPredicates(const Aws::Vector< Predicate > &value)
RateBasedRule & WithName(const Aws::String &value)
AWS_WAFREGIONAL_API RateBasedRule(Aws::Utils::Json::JsonView jsonValue)
RateBasedRule & AddMatchPredicates(Predicate &&value)
const RateKey & GetRateKey() const
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRateKey(RateKey &&value)
bool RateLimitHasBeenSet() const
void SetMatchPredicates(Aws::Vector< Predicate > &&value)
AWS_WAFREGIONAL_API RateBasedRule()
RateBasedRule & WithRuleId(const char *value)
const Aws::String & GetRuleId() const
RateBasedRule & WithMetricName(const Aws::String &value)
RateBasedRule & WithRuleId(Aws::String &&value)
const Aws::String & GetName() const
RateBasedRule & WithRateKey(RateKey &&value)
const Aws::String & GetMetricName() const
void SetMetricName(Aws::String &&value)
bool RuleIdHasBeenSet() const
RateBasedRule & WithMetricName(const char *value)
void SetName(const Aws::String &value)
RateBasedRule & WithMatchPredicates(Aws::Vector< Predicate > &&value)
bool NameHasBeenSet() const
RateBasedRule & WithRuleId(const Aws::String &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