public class WAFInvalidParameterException extends AmazonServiceException
The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
ByteMatchSet
,
IPSet
, Rule
, or WebACL
) using an
action other than INSERT
or DELETE
.WebACL
with a
DefaultAction
Type
other than ALLOW
,
BLOCK
, or COUNT
.WebACL
with a WafAction
Type
other than ALLOW
, BLOCK
, or
COUNT
.ByteMatchSet
with a
FieldToMatch
Type
other than HEADER, QUERY_STRING,
or URI.ByteMatchSet
with a Field
of HEADER
but no value for Data
.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()
Returns the value of the Field property for this object.
|
String |
getParameter()
Returns the value of the Parameter property for this object.
|
void |
setField(ParameterExceptionField field)
Sets the value of the Field property for this object.
|
void |
setField(String field)
Sets the value of the Field property for this object.
|
void |
setParameter(String parameter)
Sets the value of the Parameter property for this object.
|
WAFInvalidParameterException |
withField(ParameterExceptionField field)
Sets the value of the Field property for this object.
|
WAFInvalidParameterException |
withField(String field)
Sets the value of the Field property for this object.
|
WAFInvalidParameterException |
withParameter(String parameter)
Sets the value of the Parameter property for this object.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WAFInvalidParameterException(String message)
message
- Describes the error encountered.public void setField(String field)
field
- The new value for the Field property for this object.ParameterExceptionField
public String getField()
ParameterExceptionField
public WAFInvalidParameterException withField(String field)
field
- The new value for the Field property for this object.ParameterExceptionField
public void setField(ParameterExceptionField field)
field
- The new value for the Field property for this object.ParameterExceptionField
public WAFInvalidParameterException withField(ParameterExceptionField field)
field
- The new value for the Field property for this object.ParameterExceptionField
public void setParameter(String parameter)
parameter
- The new value for the Parameter property for this object.public String getParameter()
public WAFInvalidParameterException withParameter(String parameter)
parameter
- The new value for the Parameter property for this object.Copyright © 2015. All rights reserved.