@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WAFInvalidParameterException extends AWSWAFException
The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
You specified an invalid parameter name.
You specified an invalid value.
You tried to update an object (ByteMatchSet, IPSet, Rule, or
WebACL) using an action other than INSERT or DELETE.
You tried to create a WebACL with a DefaultAction Type other than
ALLOW, BLOCK, or COUNT.
You tried to create a RateBasedRule with a RateKey value other than IP.
You tried to update a WebACL with a WafAction Type other than
ALLOW, BLOCK, or COUNT.
You tried to update a ByteMatchSet with a FieldToMatch Type other than HEADER,
METHOD, QUERY_STRING, URI, or BODY.
You tried to update a ByteMatchSet with a Field of HEADER but no value for
Data.
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
WAFInvalidParameterException(String message)
Constructs a new WAFInvalidParameterException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getField() |
String |
getParameter() |
String |
getReason() |
void |
setField(ParameterExceptionField field) |
void |
setField(String field) |
void |
setParameter(String parameter) |
void |
setReason(ParameterExceptionReason reason) |
void |
setReason(String reason) |
WAFInvalidParameterException |
withField(ParameterExceptionField field) |
WAFInvalidParameterException |
withField(String field) |
WAFInvalidParameterException |
withParameter(String parameter) |
WAFInvalidParameterException |
withReason(ParameterExceptionReason reason) |
WAFInvalidParameterException |
withReason(String reason) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WAFInvalidParameterException(String message)
message - Describes the error encountered.public void setField(String field)
field - ParameterExceptionFieldpublic String getField()
ParameterExceptionFieldpublic WAFInvalidParameterException withField(String field)
field - ParameterExceptionFieldpublic void setField(ParameterExceptionField field)
field - ParameterExceptionFieldpublic WAFInvalidParameterException withField(ParameterExceptionField field)
field - ParameterExceptionFieldpublic void setParameter(String parameter)
parameter - public String getParameter()
public WAFInvalidParameterException withParameter(String parameter)
parameter - public void setReason(String reason)
reason - ParameterExceptionReasonpublic String getReason()
ParameterExceptionReasonpublic WAFInvalidParameterException withReason(String reason)
reason - ParameterExceptionReasonpublic void setReason(ParameterExceptionReason reason)
reason - ParameterExceptionReasonpublic WAFInvalidParameterException withReason(ParameterExceptionReason reason)
reason - ParameterExceptionReasonCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.