@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AmazonWorkSpacesWebException
There is a validation error.
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> | getFieldList()
 The field that caused the error. | 
| String | getReason()
 Reason the request failed validation | 
| void | setFieldList(Collection<ValidationExceptionField> fieldList)
 The field that caused the error. | 
| void | setReason(String reason)
 Reason the request failed validation | 
| ValidationException | withFieldList(Collection<ValidationExceptionField> fieldList)
 The field that caused the error. | 
| ValidationException | withFieldList(ValidationExceptionField... fieldList)
 The field 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, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidationException(String message)
message - Describes the error encountered.public List<ValidationExceptionField> getFieldList()
The field that caused the error.
public void setFieldList(Collection<ValidationExceptionField> fieldList)
The field that caused the error.
fieldList - The field that caused the error.public ValidationException withFieldList(ValidationExceptionField... fieldList)
The field that caused the error.
 NOTE: This method appends the values to the existing list (if any). Use
 setFieldList(java.util.Collection) or withFieldList(java.util.Collection) if you want to
 override the existing values.
 
fieldList - The field that caused the error.public ValidationException withFieldList(Collection<ValidationExceptionField> fieldList)
The field that caused the error.
fieldList - The field that caused the error.public void setReason(String reason)
Reason the request failed validation
reason - Reason the request failed validationValidationExceptionReasonpublic String getReason()
Reason the request failed validation
ValidationExceptionReasonpublic ValidationException withReason(String reason)
Reason the request failed validation
reason - Reason the request failed validationValidationExceptionReasonpublic ValidationException withReason(ValidationExceptionReason reason)
Reason the request failed validation
reason - Reason the request failed validationValidationExceptionReason