Interface ValidationException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<ValidationException.Builder,ValidationException>,PanoramaException.Builder,SdkBuilder<ValidationException.Builder,ValidationException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder
- Enclosing class:
- ValidationException
public static interface ValidationException.Builder extends SdkPojo, CopyableBuilder<ValidationException.Builder,ValidationException>, PanoramaException.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, 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
-
errorArguments
ValidationException.Builder errorArguments(Collection<ValidationExceptionErrorArgument> errorArguments)
A list of attributes that led to the exception and their values.
- Parameters:
errorArguments- A list of attributes that led to the exception and their values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorArguments
ValidationException.Builder errorArguments(ValidationExceptionErrorArgument... errorArguments)
A list of attributes that led to the exception and their values.
- Parameters:
errorArguments- A list of attributes that led to the exception and their values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorArguments
ValidationException.Builder errorArguments(Consumer<ValidationExceptionErrorArgument.Builder>... errorArguments)
A list of attributes that led to the exception and their values.
This is a convenience method that creates an instance of theValidationExceptionErrorArgument.Builderavoiding the need to create one manually viaValidationExceptionErrorArgument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errorArguments(List.) - Parameters:
errorArguments- a consumer that will call methods onValidationExceptionErrorArgument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#errorArguments(java.util.Collection)
-
errorId
ValidationException.Builder errorId(String errorId)
A unique ID for the error.
- Parameters:
errorId- A unique ID for the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
ValidationException.Builder fields(Collection<ValidationExceptionField> fields)
A list of request parameters that failed validation.
- Parameters:
fields- A list of request parameters that failed validation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
ValidationException.Builder fields(ValidationExceptionField... fields)
A list of request parameters that failed validation.
- Parameters:
fields- A list of request parameters that failed validation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
ValidationException.Builder fields(Consumer<ValidationExceptionField.Builder>... fields)
A list of request parameters that failed validation.
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#fields(List.) - Parameters:
fields- 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:
#fields(java.util.Collection)
-
reason
ValidationException.Builder reason(String reason)
The reason that validation failed.
- Parameters:
reason- The reason that validation failed.- 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 that validation failed.
- Parameters:
reason- The reason that validation failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ValidationExceptionReason,ValidationExceptionReason
-
awsErrorDetails
ValidationException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfacePanoramaException.Builder
-
message
ValidationException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfacePanoramaException.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 interfacePanoramaException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder
-
statusCode
ValidationException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfacePanoramaException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder
-
cause
ValidationException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfacePanoramaException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder
-
writableStackTrace
ValidationException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfacePanoramaException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder
-
-