@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WAFInvalidParameterException extends AWSWAFV2Exception
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.
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()
The settings where the invalid parameter was found.
|
String |
getParameter()
The invalid parameter that resulted in the exception.
|
String |
getReason()
Additional information about the exception.
|
void |
setField(String field)
The settings where the invalid parameter was found.
|
void |
setParameter(String parameter)
The invalid parameter that resulted in the exception.
|
void |
setReason(String reason)
Additional information about the exception.
|
WAFInvalidParameterException |
withField(ParameterExceptionField field)
The settings where the invalid parameter was found.
|
WAFInvalidParameterException |
withField(String field)
The settings where the invalid parameter was found.
|
WAFInvalidParameterException |
withParameter(String parameter)
The invalid parameter that resulted in the exception.
|
WAFInvalidParameterException |
withReason(String reason)
Additional information about the exception.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, 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)
The settings where the invalid parameter was found.
field
- The settings where the invalid parameter was found.ParameterExceptionField
public String getField()
The settings where the invalid parameter was found.
ParameterExceptionField
public WAFInvalidParameterException withField(String field)
The settings where the invalid parameter was found.
field
- The settings where the invalid parameter was found.ParameterExceptionField
public WAFInvalidParameterException withField(ParameterExceptionField field)
The settings where the invalid parameter was found.
field
- The settings where the invalid parameter was found.ParameterExceptionField
public void setParameter(String parameter)
The invalid parameter that resulted in the exception.
parameter
- The invalid parameter that resulted in the exception.public String getParameter()
The invalid parameter that resulted in the exception.
public WAFInvalidParameterException withParameter(String parameter)
The invalid parameter that resulted in the exception.
parameter
- The invalid parameter that resulted in the exception.public void setReason(String reason)
Additional information about the exception.
reason
- Additional information about the exception.public String getReason()
Additional information about the exception.
public WAFInvalidParameterException withReason(String reason)
Additional information about the exception.
reason
- Additional information about the exception.