This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-waf/include/aws/waf/model/WAFInvalidParameterException.h

137 lines
4.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf/WAF_EXPORTS.h>
#include <aws/waf/model/ParameterExceptionField.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/waf/model/ParameterExceptionReason.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAF
{
namespace Model
{
/**
* <p>The operation failed because AWS WAF didn't recognize a parameter in the
* request. For example:</p> <ul> <li> <p>You specified an invalid parameter
* name.</p> </li> <li> <p>You specified an invalid value.</p> </li> <li> <p>You
* tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>,
* <code>Rule</code>, or <code>WebACL</code>) using an action other than
* <code>INSERT</code> or <code>DELETE</code>.</p> </li> <li> <p>You tried to
* create a <code>WebACL</code> with a <code>DefaultAction</code> <code>Type</code>
* other than <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
* </li> <li> <p>You tried to create a <code>RateBasedRule</code> with a
* <code>RateKey</code> value other than <code>IP</code>.</p> </li> <li> <p>You
* tried to update a <code>WebACL</code> with a <code>WafAction</code>
* <code>Type</code> other than <code>ALLOW</code>, <code>BLOCK</code>, or
* <code>COUNT</code>.</p> </li> <li> <p>You tried to update a
* <code>ByteMatchSet</code> with a <code>FieldToMatch</code> <code>Type</code>
* other than HEADER, METHOD, QUERY_STRING, URI, or BODY.</p> </li> <li> <p>You
* tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of
* <code>HEADER</code> but no value for <code>Data</code>.</p> </li> <li> <p>Your
* request references an ARN that is malformed, or corresponds to a resource with
* which a web ACL cannot be associated.</p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/WAFInvalidParameterException">AWS
* API Reference</a></p>
*/
class AWS_WAF_API WAFInvalidParameterException
{
public:
WAFInvalidParameterException();
WAFInvalidParameterException(Aws::Utils::Json::JsonView jsonValue);
WAFInvalidParameterException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const ParameterExceptionField& GetField() const{ return m_field; }
inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
inline void SetField(const ParameterExceptionField& value) { m_fieldHasBeenSet = true; m_field = value; }
inline void SetField(ParameterExceptionField&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
inline WAFInvalidParameterException& WithField(const ParameterExceptionField& value) { SetField(value); return *this;}
inline WAFInvalidParameterException& WithField(ParameterExceptionField&& value) { SetField(std::move(value)); return *this;}
inline const Aws::String& GetParameter() const{ return m_parameter; }
inline bool ParameterHasBeenSet() const { return m_parameterHasBeenSet; }
inline void SetParameter(const Aws::String& value) { m_parameterHasBeenSet = true; m_parameter = value; }
inline void SetParameter(Aws::String&& value) { m_parameterHasBeenSet = true; m_parameter = std::move(value); }
inline void SetParameter(const char* value) { m_parameterHasBeenSet = true; m_parameter.assign(value); }
inline WAFInvalidParameterException& WithParameter(const Aws::String& value) { SetParameter(value); return *this;}
inline WAFInvalidParameterException& WithParameter(Aws::String&& value) { SetParameter(std::move(value)); return *this;}
inline WAFInvalidParameterException& WithParameter(const char* value) { SetParameter(value); return *this;}
inline const ParameterExceptionReason& GetReason() const{ return m_reason; }
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
inline void SetReason(const ParameterExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
inline void SetReason(ParameterExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
inline WAFInvalidParameterException& WithReason(const ParameterExceptionReason& value) { SetReason(value); return *this;}
inline WAFInvalidParameterException& WithReason(ParameterExceptionReason&& value) { SetReason(std::move(value)); return *this;}
private:
ParameterExceptionField m_field;
bool m_fieldHasBeenSet;
Aws::String m_parameter;
bool m_parameterHasBeenSet;
ParameterExceptionReason m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace WAF
} // namespace Aws