/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The set of IP addresses that are currently blocked for a
* RateBasedStatement. This is only available for rate-based rules that
* aggregate on just the IP address, with the A rate-based rule applies
* its rule action to requests from IP addresses that are in the rule's managed
* keys list and that match the rule's scope-down statement. When a rule has no
* scope-down statement, it applies the action to all requests from the IP
* addresses that are in the list. The rule applies its rule action to rate limit
* the matching requests. The action is usually Block but it can be any valid rule
* action except for Allow. The maximum number of IP addresses that can be
* rate limited by a single rate-based rule instance is 10,000. If more than 10,000
* addresses exceed the rate limit, WAF limits those with the highest rates.
* AggregateKeyType
set to
* IP
or FORWARDED_IP
.See Also:
AWS
* API Reference
The version of the IP addresses, either IPV4
or
* IPV6
.
The version of the IP addresses, either IPV4
or
* IPV6
.
The version of the IP addresses, either IPV4
or
* IPV6
.
The version of the IP addresses, either IPV4
or
* IPV6
.
The version of the IP addresses, either IPV4
or
* IPV6
.
The version of the IP addresses, either IPV4
or
* IPV6
.
The IP addresses that are currently blocked.
*/ inline const Aws::VectorThe IP addresses that are currently blocked.
*/ inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; } /** *The IP addresses that are currently blocked.
*/ inline void SetAddresses(const Aws::VectorThe IP addresses that are currently blocked.
*/ inline void SetAddresses(Aws::VectorThe IP addresses that are currently blocked.
*/ inline RateBasedStatementManagedKeysIPSet& WithAddresses(const Aws::VectorThe IP addresses that are currently blocked.
*/ inline RateBasedStatementManagedKeysIPSet& WithAddresses(Aws::VectorThe IP addresses that are currently blocked.
*/ inline RateBasedStatementManagedKeysIPSet& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; } /** *The IP addresses that are currently blocked.
*/ inline RateBasedStatementManagedKeysIPSet& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; } /** *The IP addresses that are currently blocked.
*/ inline RateBasedStatementManagedKeysIPSet& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; } private: IPAddressVersion m_iPAddressVersion; bool m_iPAddressVersionHasBeenSet = false; Aws::Vector