Package com.amazonaws.services.waf.model
Class WAFInvalidParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.amazonaws.AmazonClientException
-
- com.amazonaws.AmazonServiceException
-
- com.amazonaws.services.waf.model.WAFInvalidParameterException
-
- All Implemented Interfaces:
Serializable
public class WAFInvalidParameterException extends AmazonServiceException
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
, orWebACL
) using an action other thanINSERT
orDELETE
. - You tried to create a
WebACL
with aDefaultAction
Type
other thanALLOW
,BLOCK
, orCOUNT
. - You tried to update a
WebACL
with aWafAction
Type
other thanALLOW
,BLOCK
, orCOUNT
. - You tried to update a
ByteMatchSet
with aFieldToMatch
Type
other than HEADER, QUERY_STRING, or URI. - You tried to update a
ByteMatchSet
with aField
ofHEADER
but no value forData
.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
-
Constructor Summary
Constructors Constructor Description WAFInvalidParameterException(String message)
Constructs a new WAFInvalidParameterException with the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
-
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WAFInvalidParameterException
public WAFInvalidParameterException(String message)
Constructs a new WAFInvalidParameterException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Detail
-
setField
public void setField(String field)
- Parameters:
field
-- See Also:
ParameterExceptionField
-
getField
public String getField()
- Returns:
- See Also:
ParameterExceptionField
-
withField
public WAFInvalidParameterException withField(String field)
- Parameters:
field
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ParameterExceptionField
-
setField
public void setField(ParameterExceptionField field)
- Parameters:
field
-- See Also:
ParameterExceptionField
-
withField
public WAFInvalidParameterException withField(ParameterExceptionField field)
- Parameters:
field
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ParameterExceptionField
-
setParameter
public void setParameter(String parameter)
- Parameters:
parameter
-
-
getParameter
public String getParameter()
- Returns:
-
withParameter
public WAFInvalidParameterException withParameter(String parameter)
- Parameters:
parameter
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReason
public void setReason(String reason)
- Parameters:
reason
-- See Also:
ParameterExceptionReason
-
getReason
public String getReason()
- Returns:
- See Also:
ParameterExceptionReason
-
withReason
public WAFInvalidParameterException withReason(String reason)
- Parameters:
reason
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ParameterExceptionReason
-
setReason
public void setReason(ParameterExceptionReason reason)
- Parameters:
reason
-- See Also:
ParameterExceptionReason
-
withReason
public WAFInvalidParameterException withReason(ParameterExceptionReason reason)
- Parameters:
reason
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ParameterExceptionReason
-
-