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

Specifies a cookie as an aggregate key for a rate-based rule. Each distinct * value in the cookie contributes to the aggregation instance. If you use a single * cookie as your custom key, then each value fully defines an aggregation * instance.

See Also:

AWS * API Reference

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

The name of the cookie to use.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the cookie to use.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the cookie to use.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the cookie to use.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the cookie to use.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the cookie to use.

*/ inline RateLimitCookie& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the cookie to use.

*/ inline RateLimitCookie& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the cookie to use.

*/ inline RateLimitCookie& WithName(const char* value) { SetName(value); return *this;} /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline const Aws::Vector& GetTextTransformations() const{ return m_textTransformations; } /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; } /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline void SetTextTransformations(const Aws::Vector& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; } /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline void SetTextTransformations(Aws::Vector&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); } /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline RateLimitCookie& WithTextTransformations(const Aws::Vector& value) { SetTextTransformations(value); return *this;} /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline RateLimitCookie& WithTextTransformations(Aws::Vector&& value) { SetTextTransformations(std::move(value)); return *this;} /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline RateLimitCookie& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; } /** *

Text transformations eliminate some of the unusual formatting that attackers * use in web requests in an effort to bypass detection. Text transformations are * used in rule match statements, to transform the FieldToMatch * request component before inspecting it, and they're used in rate-based rule * statements, to transform request components before using them as custom * aggregation keys. If you specify one or more transformations to apply, WAF * performs all transformations on the specified content, starting from the lowest * priority setting, and then uses the component contents.

*/ inline RateLimitCookie& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_textTransformations; bool m_textTransformationsHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws