/** * 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 header. 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 ResponseInspectionHeader { public: AWS_WAFV2_API ResponseInspectionHeader(); AWS_WAFV2_API ResponseInspectionHeader(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API ResponseInspectionHeader& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

The name of the header to match against. The name must be an exact match, * including case.

JSON example: "Name": [ "RequestResult" ] *

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

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline const Aws::Vector& GetSuccessValues() const{ return m_successValues; } /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline bool SuccessValuesHasBeenSet() const { return m_successValuesHasBeenSet; } /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline void SetSuccessValues(const Aws::Vector& value) { m_successValuesHasBeenSet = true; m_successValues = value; } /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline void SetSuccessValues(Aws::Vector&& value) { m_successValuesHasBeenSet = true; m_successValues = std::move(value); } /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline ResponseInspectionHeader& WithSuccessValues(const Aws::Vector& value) { SetSuccessValues(value); return *this;} /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline ResponseInspectionHeader& WithSuccessValues(Aws::Vector&& value) { SetSuccessValues(std::move(value)); return *this;} /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline ResponseInspectionHeader& AddSuccessValues(const Aws::String& value) { m_successValuesHasBeenSet = true; m_successValues.push_back(value); return *this; } /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline ResponseInspectionHeader& AddSuccessValues(Aws::String&& value) { m_successValuesHasBeenSet = true; m_successValues.push_back(std::move(value)); return *this; } /** *

Values in the response header with the specified name that indicate a * successful login or account creation attempt. To be counted as a success, the * value must be an exact match, including case. Each value must be unique among * the success and failure values.

JSON examples: "SuccessValues": [ * "LoginPassed", "Successful login" ] and "SuccessValues": [ * "AccountCreated", "Successful account creation" ]

*/ inline ResponseInspectionHeader& AddSuccessValues(const char* value) { m_successValuesHasBeenSet = true; m_successValues.push_back(value); return *this; } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline const Aws::Vector& GetFailureValues() const{ return m_failureValues; } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline bool FailureValuesHasBeenSet() const { return m_failureValuesHasBeenSet; } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline void SetFailureValues(const Aws::Vector& value) { m_failureValuesHasBeenSet = true; m_failureValues = value; } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline void SetFailureValues(Aws::Vector&& value) { m_failureValuesHasBeenSet = true; m_failureValues = std::move(value); } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline ResponseInspectionHeader& WithFailureValues(const Aws::Vector& value) { SetFailureValues(value); return *this;} /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline ResponseInspectionHeader& WithFailureValues(Aws::Vector&& value) { SetFailureValues(std::move(value)); return *this;} /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline ResponseInspectionHeader& AddFailureValues(const Aws::String& value) { m_failureValuesHasBeenSet = true; m_failureValues.push_back(value); return *this; } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline ResponseInspectionHeader& AddFailureValues(Aws::String&& value) { m_failureValuesHasBeenSet = true; m_failureValues.push_back(std::move(value)); return *this; } /** *

Values in the response header with the specified name that indicate a failed * login or account creation attempt. To be counted as a failure, the value must be * an exact match, including case. Each value must be unique among the success and * failure values.

JSON examples: "FailureValues": [ "LoginFailed", * "Failed login" ] and "FailureValues": [ "AccountCreationFailed" * ]

*/ inline ResponseInspectionHeader& AddFailureValues(const char* value) { m_failureValuesHasBeenSet = true; m_failureValues.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_successValues; bool m_successValuesHasBeenSet = false; Aws::Vector m_failureValues; bool m_failureValuesHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws