Interface ValidationException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<ValidationException.Builder,ValidationException>,IoTFleetWiseException.Builder,SdkBuilder<ValidationException.Builder,ValidationException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder
- Enclosing class:
- ValidationException
public static interface ValidationException.Builder extends SdkPojo, CopyableBuilder<ValidationException.Builder,ValidationException>, IoTFleetWiseException.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidationException.BuilderawsErrorDetails(AwsErrorDetails awsErrorDetails)ValidationException.Buildercause(Throwable cause)ValidationException.BuilderfieldList(Collection<ValidationExceptionField> fieldList)The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.ValidationException.BuilderfieldList(Consumer<ValidationExceptionField.Builder>... fieldList)The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.ValidationException.BuilderfieldList(ValidationExceptionField... fieldList)The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.ValidationException.Buildermessage(String message)ValidationException.Builderreason(String reason)The reason the input failed to satisfy the constraints specified by an Amazon Web Services service.ValidationException.Builderreason(ValidationExceptionReason reason)The reason the input failed to satisfy the constraints specified by an Amazon Web Services service.ValidationException.BuilderrequestId(String requestId)ValidationException.BuilderstatusCode(int statusCode)ValidationException.BuilderwritableStackTrace(Boolean writableStackTrace)-
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, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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 the input failed to satisfy the constraints specified by an Amazon Web Services service.
- Parameters:
reason- The reason the input failed to satisfy the constraints specified by an Amazon Web Services service.- 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 the input failed to satisfy the constraints specified by an Amazon Web Services service.
- Parameters:
reason- The reason the input failed to satisfy the constraints specified by an Amazon Web Services service.- 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)
The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.
- Parameters:
fieldList- The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldList
ValidationException.Builder fieldList(ValidationExceptionField... fieldList)
The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.
- Parameters:
fieldList- The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldList
ValidationException.Builder fieldList(Consumer<ValidationExceptionField.Builder>... fieldList)
The list of fields that fail to satisfy the constraints specified by an Amazon Web Services service.
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 interfaceIoTFleetWiseException.Builder
-
message
ValidationException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceIoTFleetWiseException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder
-
requestId
ValidationException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceIoTFleetWiseException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder
-
statusCode
ValidationException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceIoTFleetWiseException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder
-
cause
ValidationException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceIoTFleetWiseException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder
-
writableStackTrace
ValidationException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceIoTFleetWiseException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder
-
-