Interface AwsErrorDetails.Builder
- Enclosing class:
AwsErrorDetails
public static interface AwsErrorDetails.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newAwsErrorDetails
with 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 theSdkHttpResponse
returned 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
Specifies the error message returned by the service.- Parameters:
errorMessage
- The error message returned by the service.- Returns:
- This object for method chaining.
-
errorMessage
String errorMessage()The error message specified by the service.- Returns:
- The error message specified by the service.
-
errorCode
Specifies the error code returned by the service.- Parameters:
errorCode
- The error code returned by the service.- Returns:
- This object for method chaining.
-
errorCode
String errorCode()The error code specified by the service.- Returns:
- The error code specified by the service.
-
serviceName
Specifies the name of the service that returned this error.- Parameters:
serviceName
- The name of the service.- Returns:
- This object for method chaining.
-
serviceName
String serviceName()Returns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.- Returns:
- The name of the service that returned this error.
-
sdkHttpResponse
Specifies theSdkHttpResponse
returned on the error response from the service.- Parameters:
sdkHttpResponse
- The HTTP response from the service.- Returns:
- This object for method chaining.
-
sdkHttpResponse
SdkHttpResponse sdkHttpResponse()The HTTP response returned from the service.- Returns:
SdkHttpResponse
.
-
rawResponse
Specifies raw http response from the service.- Parameters:
rawResponse
- raw byte response from the service.- Returns:
- The object for method chaining.
-
rawResponse
SdkBytes rawResponse()The raw response from the service.- Returns:
- The raw response from the service in a byte array.
-
build
AwsErrorDetails build()Creates a newAwsErrorDetails
with the properties set on this builder.- Returns:
- The new
AwsErrorDetails
.
-