/** * 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 { /** *

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 WebACL with a DefaultAction that isn't among * the types available at DefaultAction.

  • Your request * references an ARN that is malformed, or corresponds to a resource with which a * web ACL can't be associated.

See Also:

AWS * API Reference

*/ class WAFInvalidParameterException { public: AWS_WAFV2_API WAFInvalidParameterException(); AWS_WAFV2_API WAFInvalidParameterException(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API WAFInvalidParameterException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline WAFInvalidParameterException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline WAFInvalidParameterException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline WAFInvalidParameterException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

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