7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/model/RateKey.h>
11#include <aws/waf/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 SetMetricName(const Aws::String &value)
long long GetRateLimit() const
RateBasedRule & WithName(const Aws::String &value)
RateBasedRule & WithRuleId(Aws::String &&value)
RateBasedRule & AddMatchPredicates(Predicate &&value)
RateBasedRule & AddMatchPredicates(const Predicate &value)
const Aws::String & GetName() const
void SetMatchPredicates(Aws::Vector< Predicate > &&value)
AWS_WAF_API RateBasedRule(Aws::Utils::Json::JsonView jsonValue)
RateBasedRule & WithName(Aws::String &&value)
void SetMetricName(const char *value)
void SetRateKey(RateKey &&value)
void SetRuleId(Aws::String &&value)
void SetName(Aws::String &&value)
void SetMatchPredicates(const Aws::Vector< Predicate > &value)
RateBasedRule & WithMetricName(Aws::String &&value)
void SetName(const char *value)
bool MetricNameHasBeenSet() const
void SetRuleId(const Aws::String &value)
RateBasedRule & WithName(const char *value)
void SetRuleId(const char *value)
void SetRateKey(const RateKey &value)
AWS_WAF_API RateBasedRule()
AWS_WAF_API RateBasedRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RuleIdHasBeenSet() const
RateBasedRule & WithRuleId(const Aws::String &value)
RateBasedRule & WithRateKey(const RateKey &value)
RateBasedRule & WithMetricName(const Aws::String &value)
const Aws::Vector< Predicate > & GetMatchPredicates() const
const Aws::String & GetRuleId() const
bool NameHasBeenSet() const
bool RateLimitHasBeenSet() const
RateBasedRule & WithRateKey(RateKey &&value)
RateBasedRule & WithMatchPredicates(Aws::Vector< Predicate > &&value)
void SetMetricName(Aws::String &&value)
RateBasedRule & WithRateLimit(long long value)
const Aws::String & GetMetricName() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const RateKey & GetRateKey() const
RateBasedRule & WithMatchPredicates(const Aws::Vector< Predicate > &value)
bool MatchPredicatesHasBeenSet() const
RateBasedRule & WithRuleId(const char *value)
bool RateKeyHasBeenSet() const
RateBasedRule & WithMetricName(const char *value)
void SetRateLimit(long long value)
void SetName(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