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

Configures inspection of the response body. WAF can inspect the first 65,536 * bytes (64 KB) of the response body. This is part of the * ResponseInspection configuration for * AWSManagedRulesATPRuleSet and * AWSManagedRulesACFPRuleSet.

Response inspection is * available only in web ACLs that protect Amazon CloudFront distributions.

*

See Also:

AWS * API Reference

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

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline const Aws::Vector& GetSuccessStrings() const{ return m_successStrings; } /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline bool SuccessStringsHasBeenSet() const { return m_successStringsHasBeenSet; } /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline void SetSuccessStrings(const Aws::Vector& value) { m_successStringsHasBeenSet = true; m_successStrings = value; } /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline void SetSuccessStrings(Aws::Vector&& value) { m_successStringsHasBeenSet = true; m_successStrings = std::move(value); } /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline ResponseInspectionBodyContains& WithSuccessStrings(const Aws::Vector& value) { SetSuccessStrings(value); return *this;} /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline ResponseInspectionBodyContains& WithSuccessStrings(Aws::Vector&& value) { SetSuccessStrings(std::move(value)); return *this;} /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline ResponseInspectionBodyContains& AddSuccessStrings(const Aws::String& value) { m_successStringsHasBeenSet = true; m_successStrings.push_back(value); return *this; } /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline ResponseInspectionBodyContains& AddSuccessStrings(Aws::String&& value) { m_successStringsHasBeenSet = true; m_successStrings.push_back(std::move(value)); return *this; } /** *

Strings in the body of the response that indicate a successful login or * account creation attempt. To be counted as a success, the string can be anywhere * in the body and must be an exact match, including case. Each string must be * unique among the success and failure strings.

JSON examples: * "SuccessStrings": [ "Login successful" ] and * "SuccessStrings": [ "Account creation successful", "Welcome to our site!" * ]

*/ inline ResponseInspectionBodyContains& AddSuccessStrings(const char* value) { m_successStringsHasBeenSet = true; m_successStrings.push_back(value); return *this; } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline const Aws::Vector& GetFailureStrings() const{ return m_failureStrings; } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline bool FailureStringsHasBeenSet() const { return m_failureStringsHasBeenSet; } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline void SetFailureStrings(const Aws::Vector& value) { m_failureStringsHasBeenSet = true; m_failureStrings = value; } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline void SetFailureStrings(Aws::Vector&& value) { m_failureStringsHasBeenSet = true; m_failureStrings = std::move(value); } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline ResponseInspectionBodyContains& WithFailureStrings(const Aws::Vector& value) { SetFailureStrings(value); return *this;} /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline ResponseInspectionBodyContains& WithFailureStrings(Aws::Vector&& value) { SetFailureStrings(std::move(value)); return *this;} /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline ResponseInspectionBodyContains& AddFailureStrings(const Aws::String& value) { m_failureStringsHasBeenSet = true; m_failureStrings.push_back(value); return *this; } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline ResponseInspectionBodyContains& AddFailureStrings(Aws::String&& value) { m_failureStringsHasBeenSet = true; m_failureStrings.push_back(std::move(value)); return *this; } /** *

Strings in the body of the response that indicate a failed login or account * creation attempt. To be counted as a failure, the string can be anywhere in the * body and must be an exact match, including case. Each string must be unique * among the success and failure strings.

JSON example: * "FailureStrings": [ "Request failed" ]

*/ inline ResponseInspectionBodyContains& AddFailureStrings(const char* value) { m_failureStringsHasBeenSet = true; m_failureStrings.push_back(value); return *this; } private: Aws::Vector m_successStrings; bool m_successStringsHasBeenSet = false; Aws::Vector m_failureStrings; bool m_failureStringsHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws