public static interface ValidationException.Builder extends SdkPojo, CopyableBuilder<ValidationException.Builder,ValidationException>, AmpException.Builder
| Modifier and Type | Method and Description |
|---|---|
ValidationException.Builder |
awsErrorDetails(AwsErrorDetails awsErrorDetails) |
ValidationException.Builder |
cause(Throwable cause) |
ValidationException.Builder |
fieldList(Collection<ValidationExceptionField> fieldList)
The field that caused the error, if applicable.
|
ValidationException.Builder |
fieldList(Consumer<ValidationExceptionField.Builder>... fieldList)
The field that caused the error, if applicable.
|
ValidationException.Builder |
fieldList(ValidationExceptionField... fieldList)
The field that caused the error, if applicable.
|
ValidationException.Builder |
message(String message) |
ValidationException.Builder |
reason(String reason)
Reason the request failed validation.
|
ValidationException.Builder |
reason(ValidationExceptionReason reason)
Reason the request failed validation.
|
ValidationException.Builder |
requestId(String requestId) |
ValidationException.Builder |
statusCode(int statusCode) |
copyapplyMutation, buildawsErrorDetails, build, clockSkew, clockSkew, extendedRequestIdextendedRequestId, requestId, statusCodecause, messageequalsBySdkFields, sdkFieldsValidationException.Builder fieldList(Collection<ValidationExceptionField> fieldList)
The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.
fieldList - The field that caused the error, if applicable. If more than one field caused the error, pick one and
elaborate in the message.ValidationException.Builder fieldList(ValidationExceptionField... fieldList)
The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.
fieldList - The field that caused the error, if applicable. If more than one field caused the error, pick one and
elaborate in the message.ValidationException.Builder fieldList(Consumer<ValidationExceptionField.Builder>... fieldList)
The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.
This is a convenience that creates an instance of theList.Builder avoiding
the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #fieldList(List) .fieldList - a consumer that will call methods on List.Builder #fieldList(List) ValidationException.Builder reason(String reason)
Reason the request failed validation.
reason - Reason the request failed validation.ValidationExceptionReason,
ValidationExceptionReasonValidationException.Builder reason(ValidationExceptionReason reason)
Reason the request failed validation.
reason - Reason the request failed validation.ValidationExceptionReason,
ValidationExceptionReasonValidationException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
awsErrorDetails in interface AmpException.BuilderawsErrorDetails in interface AwsServiceException.BuilderValidationException.Builder message(String message)
message in interface AmpException.Buildermessage in interface AwsServiceException.Buildermessage in interface SdkException.Buildermessage in interface SdkServiceException.BuilderValidationException.Builder requestId(String requestId)
requestId in interface AmpException.BuilderrequestId in interface AwsServiceException.BuilderrequestId in interface SdkServiceException.BuilderValidationException.Builder statusCode(int statusCode)
statusCode in interface AmpException.BuilderstatusCode in interface AwsServiceException.BuilderstatusCode in interface SdkServiceException.BuilderValidationException.Builder cause(Throwable cause)
cause in interface AmpException.Buildercause in interface AwsServiceException.Buildercause in interface SdkException.Buildercause in interface SdkServiceException.BuilderCopyright © 2021. All rights reserved.