public static interface AwsErrorDetails.Builder
Modifier and Type | Method and Description |
---|---|
AwsErrorDetails |
build()
Creates a new
AwsErrorDetails with the properties set on this builder. |
String |
errorCode()
The error code specified by the service.
|
AwsErrorDetails.Builder |
errorCode(String errorCode)
Specifies the error code returned by the service.
|
String |
errorMessage()
The error message specified by the service.
|
AwsErrorDetails.Builder |
errorMessage(String errorMessage)
Specifies the error message returned by the service.
|
SdkBytes |
rawResponse()
The raw response from the service.
|
AwsErrorDetails.Builder |
rawResponse(SdkBytes rawResponse)
Specifies raw http response from the service.
|
SdkHttpResponse |
sdkHttpResponse()
The HTTP response returned from the service.
|
AwsErrorDetails.Builder |
sdkHttpResponse(SdkHttpResponse sdkHttpResponse)
Specifies the
SdkHttpResponse returned on the error response from the service. |
String |
serviceName()
Returns the name of the service as defined in the static constant
SERVICE_NAME variable of each service's interface.
|
AwsErrorDetails.Builder |
serviceName(String serviceName)
Specifies the name of the service that returned this error.
|
AwsErrorDetails.Builder errorMessage(String errorMessage)
errorMessage
- The error message returned by the service.String errorMessage()
AwsErrorDetails.Builder errorCode(String errorCode)
errorCode
- The error code returned by the service.String errorCode()
AwsErrorDetails.Builder serviceName(String serviceName)
serviceName
- The name of the service.String serviceName()
AwsErrorDetails.Builder sdkHttpResponse(SdkHttpResponse sdkHttpResponse)
SdkHttpResponse
returned on the error response from the service.sdkHttpResponse
- The HTTP response from the service.SdkHttpResponse sdkHttpResponse()
SdkHttpResponse
.AwsErrorDetails.Builder rawResponse(SdkBytes rawResponse)
rawResponse
- raw byte response from the service.SdkBytes rawResponse()
AwsErrorDetails build()
AwsErrorDetails
with the properties set on this builder.AwsErrorDetails
.Copyright © 2019. All rights reserved.