@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSBillingConductorException
The input doesn't match with the constraints specified by Amazon Web Services.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ValidationException(String message)
Constructs a new ValidationException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
List<ValidationExceptionField> |
getFields()
The fields that caused the error, if applicable.
|
String |
getReason()
The reason the request's validation failed.
|
void |
setFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
|
void |
setReason(String reason)
The reason the request's validation failed.
|
ValidationException |
withFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
|
ValidationException |
withFields(ValidationExceptionField... fields)
The fields that caused the error, if applicable.
|
ValidationException |
withReason(String reason)
The reason the request's validation failed.
|
ValidationException |
withReason(ValidationExceptionReason reason)
The reason the request's validation failed.
|
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 ValidationException(String message)
message
- Describes the error encountered.public void setReason(String reason)
The reason the request's validation failed.
reason
- The reason the request's validation failed.ValidationExceptionReason
public String getReason()
The reason the request's validation failed.
ValidationExceptionReason
public ValidationException withReason(String reason)
The reason the request's validation failed.
reason
- The reason the request's validation failed.ValidationExceptionReason
public ValidationException withReason(ValidationExceptionReason reason)
The reason the request's validation failed.
reason
- The reason the request's validation failed.ValidationExceptionReason
public List<ValidationExceptionField> getFields()
The fields that caused the error, if applicable.
public void setFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
fields
- The fields that caused the error, if applicable.public ValidationException withFields(ValidationExceptionField... fields)
The fields that caused the error, if applicable.
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
- The fields that caused the error, if applicable.public ValidationException withFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
fields
- The fields that caused the error, if applicable.