7#include <aws/core/utils/memory/stl/AWSAllocator.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/ForwardedIPConfig.h>
11#include <aws/wafv2/model/RateBasedStatementAggregateKeyType.h>
12#include <aws/wafv2/model/RateBasedStatementCustomKey.h>
109 inline long long GetLimit()
const {
return m_limit; }
112 m_limitHasBeenSet =
true;
134 m_evaluationWindowSecHasBeenSet =
true;
135 m_evaluationWindowSec = value;
173 m_aggregateKeyTypeHasBeenSet =
true;
174 m_aggregateKeyType = value;
193 template <
typename ScopeDownStatementT = Statement>
195 m_scopeDownStatementHasBeenSet =
true;
198 template <
typename ScopeDownStatementT = Statement>
217 template <
typename ForwardedIPConfigT = ForwardedIPConfig>
219 m_forwardedIPConfigHasBeenSet =
true;
220 m_forwardedIPConfig = std::forward<ForwardedIPConfigT>(value);
222 template <
typename ForwardedIPConfigT = ForwardedIPConfig>
235 template <
typename CustomKeysT = Aws::Vector<RateBasedStatementCustomKey>>
237 m_customKeysHasBeenSet =
true;
238 m_customKeys = std::forward<CustomKeysT>(value);
240 template <
typename CustomKeysT = Aws::Vector<RateBasedStatementCustomKey>>
245 template <
typename CustomKeysT = RateBasedStatementCustomKey>
247 m_customKeysHasBeenSet =
true;
248 m_customKeys.emplace_back(std::forward<CustomKeysT>(value));
253 long long m_limit{0};
255 long long m_evaluationWindowSec{0};
259 std::shared_ptr<Statement> m_scopeDownStatement;
261 ForwardedIPConfig m_forwardedIPConfig;
264 bool m_limitHasBeenSet =
false;
265 bool m_evaluationWindowSecHasBeenSet =
false;
266 bool m_aggregateKeyTypeHasBeenSet =
false;
267 bool m_scopeDownStatementHasBeenSet =
false;
268 bool m_forwardedIPConfigHasBeenSet =
false;
269 bool m_customKeysHasBeenSet =
false;
RateBasedStatement & AddCustomKeys(CustomKeysT &&value)
const Statement & GetScopeDownStatement() const
const ForwardedIPConfig & GetForwardedIPConfig() const
const Aws::Vector< RateBasedStatementCustomKey > & GetCustomKeys() const
bool EvaluationWindowSecHasBeenSet() const
bool LimitHasBeenSet() const
bool AggregateKeyTypeHasBeenSet() const
RateBasedStatement & WithEvaluationWindowSec(long long value)
AWS_WAFV2_API RateBasedStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetLimit() const
long long GetEvaluationWindowSec() const
RateBasedStatement & WithCustomKeys(CustomKeysT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool ForwardedIPConfigHasBeenSet() const
RateBasedStatement & WithLimit(long long value)
RateBasedStatement & WithScopeDownStatement(ScopeDownStatementT &&value)
void SetForwardedIPConfig(ForwardedIPConfigT &&value)
void SetEvaluationWindowSec(long long value)
RateBasedStatement & WithAggregateKeyType(RateBasedStatementAggregateKeyType value)
void SetLimit(long long value)
AWS_WAFV2_API RateBasedStatement(Aws::Utils::Json::JsonView jsonValue)
bool CustomKeysHasBeenSet() const
bool ScopeDownStatementHasBeenSet() const
AWS_WAFV2_API RateBasedStatement()=default
RateBasedStatementAggregateKeyType GetAggregateKeyType() const
void SetScopeDownStatement(ScopeDownStatementT &&value)
void SetCustomKeys(CustomKeysT &&value)
void SetAggregateKeyType(RateBasedStatementAggregateKeyType value)
RateBasedStatement & WithForwardedIPConfig(ForwardedIPConfigT &&value)
RateBasedStatementAggregateKeyType
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue