Interface ValidationException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<ValidationException.Builder,ValidationException>,SdkBuilder<ValidationException.Builder,ValidationException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder,WorkSpacesThinClientException.Builder
- Enclosing class:
- ValidationException
public static interface ValidationException.Builder extends SdkPojo, CopyableBuilder<ValidationException.Builder,ValidationException>, WorkSpacesThinClientException.Builder
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.exception.AwsServiceException.Builder
awsErrorDetails, build, clockSkew, clockSkew, extendedRequestId
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, numAttempts, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkServiceException.Builder
extendedRequestId, requestId, statusCode
-
-
-
-
Method Detail
-
reason
ValidationException.Builder reason(String reason)
The reason for the exception.
- Parameters:
reason- The reason for the exception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ValidationExceptionReason,ValidationExceptionReason
-
reason
ValidationException.Builder reason(ValidationExceptionReason reason)
The reason for the exception.
- Parameters:
reason- The reason for the exception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ValidationExceptionReason,ValidationExceptionReason
-
fieldList
ValidationException.Builder fieldList(Collection<ValidationExceptionField> fieldList)
A list of fields that didn't validate.
- Parameters:
fieldList- A list of fields that didn't validate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldList
ValidationException.Builder fieldList(ValidationExceptionField... fieldList)
A list of fields that didn't validate.
- Parameters:
fieldList- A list of fields that didn't validate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldList
ValidationException.Builder fieldList(Consumer<ValidationExceptionField.Builder>... fieldList)
A list of fields that didn't validate.
This is a convenience method that creates an instance of theValidationExceptionField.Builderavoiding the need to create one manually viaValidationExceptionField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fieldList(List.) - Parameters:
fieldList- a consumer that will call methods onValidationExceptionField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#fieldList(java.util.Collection)
-
awsErrorDetails
ValidationException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfaceWorkSpacesThinClientException.Builder
-
message
ValidationException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder- Specified by:
messagein interfaceWorkSpacesThinClientException.Builder
-
requestId
ValidationException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder- Specified by:
requestIdin interfaceWorkSpacesThinClientException.Builder
-
statusCode
ValidationException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder- Specified by:
statusCodein interfaceWorkSpacesThinClientException.Builder
-
cause
ValidationException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder- Specified by:
causein interfaceWorkSpacesThinClientException.Builder
-
writableStackTrace
ValidationException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder- Specified by:
writableStackTracein interfaceWorkSpacesThinClientException.Builder
-
numAttempts
ValidationException.Builder numAttempts(Integer numAttempts)
- Specified by:
numAttemptsin interfaceAwsServiceException.Builder- Specified by:
numAttemptsin interfaceSdkException.Builder- Specified by:
numAttemptsin interfaceSdkServiceException.Builder- Specified by:
numAttemptsin interfaceWorkSpacesThinClientException.Builder
-
-