@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSSSMContactsException
The input fails to satisfy the constraints specified by an Amazon Web Services service.
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
|
String |
getReason ()
Reason the request failed validation
|
void |
setFields (Collection<ValidationExceptionField> fields)
The fields that caused the error
|
void |
setReason (String reason)
Reason the request failed validation
|
ValidationException |
withFields (Collection<ValidationExceptionField> fields)
The fields that caused the error
|
ValidationException |
withFields (ValidationExceptionField... fields)
The fields that caused the error
|
ValidationException |
withReason (String reason)
Reason the request failed validation
|
ValidationException |
withReason (ValidationExceptionReason reason)
Reason the request failed validation
|
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)
reason - Reason the request failed validationValidationExceptionReason public String getReason()
ValidationExceptionReason public ValidationException withReason(String reason)
reason - Reason the request failed validationValidationExceptionReason public ValidationException withReason(ValidationExceptionReason reason)
reason - Reason the request failed validationValidationExceptionReason public List<ValidationExceptionField> getFields()
public void setFields(Collection<ValidationExceptionField> fields)
fields - The fields that caused the errorpublic ValidationException withFields(ValidationExceptionField... fields)
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 errorpublic ValidationException withFields(Collection<ValidationExceptionField> fields)
fields - The fields that caused the error