/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WAFV2 { namespace Model { /** *

Specifies a label namespace to use as an aggregate key for a rate-based rule. * Each distinct fully qualified label name that has the specified label namespace * contributes to the aggregation instance. If you use just one label namespace as * your custom key, then each label name fully defines an aggregation instance. *

This uses only labels that have been added to the request by rules that * are evaluated before this rate-based rule in the web ACL.

For * information about label namespaces and names, see Label * syntax and naming requirements in the WAF Developer * Guide.

See Also:

AWS * API Reference

*/ class RateLimitLabelNamespace { public: AWS_WAFV2_API RateLimitLabelNamespace(); AWS_WAFV2_API RateLimitLabelNamespace(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API RateLimitLabelNamespace& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The namespace to use for aggregation.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace to use for aggregation.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace to use for aggregation.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace to use for aggregation.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace to use for aggregation.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace to use for aggregation.

*/ inline RateLimitLabelNamespace& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace to use for aggregation.

*/ inline RateLimitLabelNamespace& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace to use for aggregation.

*/ inline RateLimitLabelNamespace& WithNamespace(const char* value) { SetNamespace(value); return *this;} private: Aws::String m_namespace; bool m_namespaceHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws