7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/RateBasedStatementAggregateKeyType.h>
9#include <aws/wafv2/model/ForwardedIPConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wafv2/model/RateBasedStatementCustomKey.h>
12#include <aws/core/utils/memory/stl/AWSAllocator.h>
115 inline long long GetLimit()
const {
return m_limit; }
117 inline void SetLimit(
long long value) { m_limitHasBeenSet =
true; m_limit = value; }
133 inline void SetEvaluationWindowSec(
long long value) { m_evaluationWindowSecHasBeenSet =
true; m_evaluationWindowSec = value; }
180 return *m_scopeDownStatement;
183 template<
typename ScopeDownStatementT = Statement>
185 m_scopeDownStatementHasBeenSet =
true;
188 template<
typename ScopeDownStatementT = Statement>
204 template<
typename ForwardedIPConfigT = ForwardedIPConfig>
206 template<
typename ForwardedIPConfigT = ForwardedIPConfig>
216 template<
typename CustomKeysT = Aws::Vector<RateBasedStatementCustomKey>>
218 template<
typename CustomKeysT = Aws::Vector<RateBasedStatementCustomKey>>
220 template<
typename CustomKeysT = RateBasedStatementCustomKey>
225 long long m_limit{0};
226 bool m_limitHasBeenSet =
false;
228 long long m_evaluationWindowSec{0};
229 bool m_evaluationWindowSecHasBeenSet =
false;
232 bool m_aggregateKeyTypeHasBeenSet =
false;
234 std::shared_ptr<Statement> m_scopeDownStatement;
235 bool m_scopeDownStatementHasBeenSet =
false;
237 ForwardedIPConfig m_forwardedIPConfig;
238 bool m_forwardedIPConfigHasBeenSet =
false;
241 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