Interface AwsErrorDetails.Builder
-
- All Known Implementing Classes:
AwsErrorDetails.BuilderImpl
- Enclosing class:
- AwsErrorDetails
public static interface AwsErrorDetails.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsErrorDetails
build()
Creates a newAwsErrorDetails
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 theSdkHttpResponse
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.
-
-
-
Method Detail
-
errorMessage
AwsErrorDetails.Builder errorMessage(String 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
AwsErrorDetails.Builder errorCode(String 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
AwsErrorDetails.Builder serviceName(String 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
AwsErrorDetails.Builder sdkHttpResponse(SdkHttpResponse 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
AwsErrorDetails.Builder rawResponse(SdkBytes 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
.
-
-