/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The operation failed because WAF didn't recognize a parameter in the request.
* For example: You specified a parameter name or value that
* isn't valid. Your nested statement isn't valid. You might have
* tried to nest a statement that can’t be nested. You tried to
* update a Your request
* references an ARN that is malformed, or corresponds to a resource with which a
* web ACL can't be associated.
WebACL
with a DefaultAction
that isn't among
* the types available at DefaultAction.See Also:
AWS
* API Reference
The settings where the invalid parameter was found.
*/ inline const ParameterExceptionField& GetField() const{ return m_field; } /** *The settings where the invalid parameter was found.
*/ inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; } /** *The settings where the invalid parameter was found.
*/ inline void SetField(const ParameterExceptionField& value) { m_fieldHasBeenSet = true; m_field = value; } /** *The settings where the invalid parameter was found.
*/ inline void SetField(ParameterExceptionField&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); } /** *The settings where the invalid parameter was found.
*/ inline WAFInvalidParameterException& WithField(const ParameterExceptionField& value) { SetField(value); return *this;} /** *The settings where the invalid parameter was found.
*/ inline WAFInvalidParameterException& WithField(ParameterExceptionField&& value) { SetField(std::move(value)); return *this;} /** *The invalid parameter that resulted in the exception.
*/ inline const Aws::String& GetParameter() const{ return m_parameter; } /** *The invalid parameter that resulted in the exception.
*/ inline bool ParameterHasBeenSet() const { return m_parameterHasBeenSet; } /** *The invalid parameter that resulted in the exception.
*/ inline void SetParameter(const Aws::String& value) { m_parameterHasBeenSet = true; m_parameter = value; } /** *The invalid parameter that resulted in the exception.
*/ inline void SetParameter(Aws::String&& value) { m_parameterHasBeenSet = true; m_parameter = std::move(value); } /** *The invalid parameter that resulted in the exception.
*/ inline void SetParameter(const char* value) { m_parameterHasBeenSet = true; m_parameter.assign(value); } /** *The invalid parameter that resulted in the exception.
*/ inline WAFInvalidParameterException& WithParameter(const Aws::String& value) { SetParameter(value); return *this;} /** *The invalid parameter that resulted in the exception.
*/ inline WAFInvalidParameterException& WithParameter(Aws::String&& value) { SetParameter(std::move(value)); return *this;} /** *The invalid parameter that resulted in the exception.
*/ inline WAFInvalidParameterException& WithParameter(const char* value) { SetParameter(value); return *this;} /** *Additional information about the exception.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *Additional information about the exception.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *Additional information about the exception.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *Additional information about the exception.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *Additional information about the exception.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *Additional information about the exception.
*/ inline WAFInvalidParameterException& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *Additional information about the exception.
*/ inline WAFInvalidParameterException& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *Additional information about the exception.
*/ inline WAFInvalidParameterException& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ParameterExceptionField m_field; bool m_fieldHasBeenSet = false; Aws::String m_parameter; bool m_parameterHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws