public static interface ValidationException.Builder extends SdkPojo, CopyableBuilder<ValidationException.Builder,ValidationException>, DocDbElasticException.Builder
| Modifier and Type | Method and Description |
|---|---|
ValidationException.Builder |
awsErrorDetails(AwsErrorDetails awsErrorDetails) |
ValidationException.Builder |
cause(Throwable cause) |
ValidationException.Builder |
fieldList(Collection<ValidationExceptionField> fieldList)
A list of the fields in which the validation exception occurred.
|
ValidationException.Builder |
fieldList(Consumer<ValidationExceptionField.Builder>... fieldList)
A list of the fields in which the validation exception occurred.
|
ValidationException.Builder |
fieldList(ValidationExceptionField... fieldList)
A list of the fields in which the validation exception occurred.
|
ValidationException.Builder |
message(String message) |
ValidationException.Builder |
reason(String reason)
The reason why the validation exception occurred (one of
unknownOperation,
cannotParse, fieldValidationFailed, or other). |
ValidationException.Builder |
reason(ValidationExceptionReason reason)
The reason why the validation exception occurred (one of
unknownOperation,
cannotParse, fieldValidationFailed, or other). |
ValidationException.Builder |
requestId(String requestId) |
ValidationException.Builder |
statusCode(int statusCode) |
ValidationException.Builder |
writableStackTrace(Boolean writableStackTrace) |
copyapplyMutation, buildawsErrorDetails, build, clockSkew, clockSkew, extendedRequestIdextendedRequestId, requestId, statusCodecause, message, writableStackTraceequalsBySdkFields, sdkFieldsValidationException.Builder fieldList(Collection<ValidationExceptionField> fieldList)
A list of the fields in which the validation exception occurred.
fieldList - A list of the fields in which the validation exception occurred.ValidationException.Builder fieldList(ValidationExceptionField... fieldList)
A list of the fields in which the validation exception occurred.
fieldList - A list of the fields in which the validation exception occurred.ValidationException.Builder fieldList(Consumer<ValidationExceptionField.Builder>... fieldList)
A list of the fields in which the validation exception occurred.
This is a convenience method that creates an instance of theValidationExceptionField.Builder avoiding the need
to create one manually via
ValidationExceptionField.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #fieldList(List.
fieldList - a consumer that will call methods on
ValidationExceptionField.Builder#fieldList(java.util.Collection) ValidationException.Builder reason(String reason)
The reason why the validation exception occurred (one of unknownOperation,
cannotParse, fieldValidationFailed, or other).
reason - The reason why the validation exception occurred (one of unknownOperation,
cannotParse, fieldValidationFailed, or other).ValidationExceptionReason,
ValidationExceptionReasonValidationException.Builder reason(ValidationExceptionReason reason)
The reason why the validation exception occurred (one of unknownOperation,
cannotParse, fieldValidationFailed, or other).
reason - The reason why the validation exception occurred (one of unknownOperation,
cannotParse, fieldValidationFailed, or other).ValidationExceptionReason,
ValidationExceptionReasonValidationException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
awsErrorDetails in interface AwsServiceException.BuilderawsErrorDetails in interface DocDbElasticException.BuilderValidationException.Builder message(String message)
message in interface AwsServiceException.Buildermessage in interface DocDbElasticException.Buildermessage in interface SdkException.Buildermessage in interface SdkServiceException.BuilderValidationException.Builder requestId(String requestId)
requestId in interface AwsServiceException.BuilderrequestId in interface DocDbElasticException.BuilderrequestId in interface SdkServiceException.BuilderValidationException.Builder statusCode(int statusCode)
statusCode in interface AwsServiceException.BuilderstatusCode in interface DocDbElasticException.BuilderstatusCode in interface SdkServiceException.BuilderValidationException.Builder cause(Throwable cause)
cause in interface AwsServiceException.Buildercause in interface DocDbElasticException.Buildercause in interface SdkException.Buildercause in interface SdkServiceException.BuilderValidationException.Builder writableStackTrace(Boolean writableStackTrace)
writableStackTrace in interface DocDbElasticException.BuilderwritableStackTrace in interface SdkException.BuilderwritableStackTrace in interface SdkServiceException.BuilderCopyright © 2023. All rights reserved.