Interface ValidationException.Builder
- All Superinterfaces:
AwsServiceException.Builder,BedrockAgentCoreException.Builder,Buildable,CopyableBuilder<ValidationException.Builder,,ValidationException> SdkBuilder<ValidationException.Builder,,ValidationException> SdkException.Builder,SdkPojo,SdkServiceException.Builder
- Enclosing class:
- ValidationException
@Mutable
@NotThreadSafe
public static interface ValidationException.Builder
extends SdkPojo, CopyableBuilder<ValidationException.Builder,ValidationException>, BedrockAgentCoreException.Builder
-
Method Summary
Modifier and TypeMethodDescriptionawsErrorDetails(AwsErrorDetails awsErrorDetails) fieldList(Collection<ValidationExceptionField> fieldList) Sets the value of the FieldList property for this object.fieldList(Consumer<ValidationExceptionField.Builder>... fieldList) Sets the value of the FieldList property for this object.fieldList(ValidationExceptionField... fieldList) Sets the value of the FieldList property for this object.numAttempts(Integer numAttempts) Sets the value of the Reason property for this object.reason(ValidationExceptionReason reason) Sets the value of the Reason property for this object.statusCode(int statusCode) writableStackTrace(Boolean writableStackTrace) Methods inherited from interface software.amazon.awssdk.awscore.exception.AwsServiceException.Builder
awsErrorDetails, build, clockSkew, clockSkew, extendedRequestIdMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, numAttempts, writableStackTraceMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.exception.SdkServiceException.Builder
extendedRequestId, requestId, statusCode
-
Method Details
-
reason
Sets the value of the Reason property for this object.- Parameters:
reason- The new value for the Reason property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reason
Sets the value of the Reason property for this object.- Parameters:
reason- The new value for the Reason property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fieldList
Sets the value of the FieldList property for this object.- Parameters:
fieldList- The new value for the FieldList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldList
Sets the value of the FieldList property for this object.- Parameters:
fieldList- The new value for the FieldList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldList
Sets the value of the FieldList property for this object. 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 tofieldList(List<ValidationExceptionField>).- 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:
-
awsErrorDetails
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfaceBedrockAgentCoreException.Builder
-
message
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceBedrockAgentCoreException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder
-
requestId
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceBedrockAgentCoreException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder
-
statusCode
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceBedrockAgentCoreException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder
-
cause
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceBedrockAgentCoreException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder
-
writableStackTrace
- Specified by:
writableStackTracein interfaceBedrockAgentCoreException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder
-
numAttempts
- Specified by:
numAttemptsin interfaceAwsServiceException.Builder- Specified by:
numAttemptsin interfaceBedrockAgentCoreException.Builder- Specified by:
numAttemptsin interfaceSdkException.Builder- Specified by:
numAttemptsin interfaceSdkServiceException.Builder
-