Class AwsErrorDetails.BuilderImpl
java.lang.Object
software.amazon.awssdk.awscore.exception.AwsErrorDetails.BuilderImpl
- All Implemented Interfaces:
AwsErrorDetails.Builder
- Enclosing class:
- AwsErrorDetails
protected static final class AwsErrorDetails.BuilderImpl
extends Object
implements AwsErrorDetails.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newAwsErrorDetailswith the properties set on this builder.The error code specified by the service.Specifies the error code returned by the service.The error message specified by the service.errorMessage(String errorMessage) Specifies the error message returned by the service.The raw response from the service.rawResponse(SdkBytes rawResponse) Specifies raw http response from the service.The HTTP response returned from the service.sdkHttpResponse(SdkHttpResponse sdkHttpResponse) Specifies theSdkHttpResponsereturned on the error response from the service.Returns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.serviceName(String serviceName) Specifies the name of the service that returned this error.
-
Method Details
-
errorMessage
Description copied from interface:AwsErrorDetails.BuilderSpecifies the error message returned by the service.- Specified by:
errorMessagein interfaceAwsErrorDetails.Builder- Parameters:
errorMessage- The error message returned by the service.- Returns:
- This object for method chaining.
-
errorMessage
Description copied from interface:AwsErrorDetails.BuilderThe error message specified by the service.- Specified by:
errorMessagein interfaceAwsErrorDetails.Builder- Returns:
- The error message specified by the service.
-
errorCode
Description copied from interface:AwsErrorDetails.BuilderSpecifies the error code returned by the service.- Specified by:
errorCodein interfaceAwsErrorDetails.Builder- Parameters:
errorCode- The error code returned by the service.- Returns:
- This object for method chaining.
-
errorCode
Description copied from interface:AwsErrorDetails.BuilderThe error code specified by the service.- Specified by:
errorCodein interfaceAwsErrorDetails.Builder- Returns:
- The error code specified by the service.
-
serviceName
Description copied from interface:AwsErrorDetails.BuilderSpecifies the name of the service that returned this error.- Specified by:
serviceNamein interfaceAwsErrorDetails.Builder- Parameters:
serviceName- The name of the service.- Returns:
- This object for method chaining.
-
serviceName
Description copied from interface:AwsErrorDetails.BuilderReturns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.- Specified by:
serviceNamein interfaceAwsErrorDetails.Builder- Returns:
- The name of the service that returned this error.
-
sdkHttpResponse
Description copied from interface:AwsErrorDetails.BuilderSpecifies theSdkHttpResponsereturned on the error response from the service.- Specified by:
sdkHttpResponsein interfaceAwsErrorDetails.Builder- Parameters:
sdkHttpResponse- The HTTP response from the service.- Returns:
- This object for method chaining.
-
sdkHttpResponse
Description copied from interface:AwsErrorDetails.BuilderThe HTTP response returned from the service.- Specified by:
sdkHttpResponsein interfaceAwsErrorDetails.Builder- Returns:
SdkHttpResponse.
-
rawResponse
Description copied from interface:AwsErrorDetails.BuilderSpecifies raw http response from the service.- Specified by:
rawResponsein interfaceAwsErrorDetails.Builder- Parameters:
rawResponse- raw byte response from the service.- Returns:
- The object for method chaining.
-
rawResponse
Description copied from interface:AwsErrorDetails.BuilderThe raw response from the service.- Specified by:
rawResponsein interfaceAwsErrorDetails.Builder- Returns:
- The raw response from the service in a byte array.
-
build
Description copied from interface:AwsErrorDetails.BuilderCreates a newAwsErrorDetailswith the properties set on this builder.- Specified by:
buildin interfaceAwsErrorDetails.Builder- Returns:
- The new
AwsErrorDetails.
-