@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvalidParameterException extends AWSShieldException
Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
InvalidParameterException(String message)
Constructs a new InvalidParameterException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
List<ValidationExceptionField> |
getFields()
Fields that caused the exception.
|
String |
getReason()
Additional information about the exception.
|
void |
setFields(Collection<ValidationExceptionField> fields)
Fields that caused the exception.
|
void |
setReason(String reason)
Additional information about the exception.
|
InvalidParameterException |
withFields(Collection<ValidationExceptionField> fields)
Fields that caused the exception.
|
InvalidParameterException |
withFields(ValidationExceptionField... fields)
Fields that caused the exception.
|
InvalidParameterException |
withReason(String reason)
Additional information about the exception.
|
InvalidParameterException |
withReason(ValidationExceptionReason 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, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidParameterException(String message)
message - Describes the error encountered.public void setReason(String reason)
Additional information about the exception.
reason - Additional information about the exception.ValidationExceptionReasonpublic String getReason()
Additional information about the exception.
ValidationExceptionReasonpublic InvalidParameterException withReason(String reason)
Additional information about the exception.
reason - Additional information about the exception.ValidationExceptionReasonpublic InvalidParameterException withReason(ValidationExceptionReason reason)
Additional information about the exception.
reason - Additional information about the exception.ValidationExceptionReasonpublic List<ValidationExceptionField> getFields()
Fields that caused the exception.
public void setFields(Collection<ValidationExceptionField> fields)
Fields that caused the exception.
fields - Fields that caused the exception.public InvalidParameterException withFields(ValidationExceptionField... fields)
Fields that caused the exception.
NOTE: This method appends the values to the existing list (if any). Use
setFields(java.util.Collection) or withFields(java.util.Collection) if you want to override the
existing values.
fields - Fields that caused the exception.public InvalidParameterException withFields(Collection<ValidationExceptionField> fields)
Fields that caused the exception.
fields - Fields that caused the exception.