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 thanINSERTorDELETE. - You tried to create a
WebACLwith aDefaultActionTypeother thanALLOW,BLOCK, orCOUNT. - You tried to update a
WebACLwith aWafActionTypeother thanALLOW,BLOCK, orCOUNT. - You tried to update a
ByteMatchSetwith aFieldToMatchTypeother than HEADER, QUERY_STRING, or URI. - You tried to update a
ByteMatchSetwith aFieldofHEADERbut 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 StringgetField()StringgetParameter()StringgetReason()voidsetField(ParameterExceptionField field)voidsetField(String field)voidsetParameter(String parameter)voidsetReason(ParameterExceptionReason reason)voidsetReason(String reason)WAFInvalidParameterExceptionwithField(ParameterExceptionField field)WAFInvalidParameterExceptionwithField(String field)WAFInvalidParameterExceptionwithParameter(String parameter)WAFInvalidParameterExceptionwithReason(ParameterExceptionReason reason)WAFInvalidParameterExceptionwithReason(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
-
-