protected static final class AwsErrorDetails.BuilderImpl extends Object implements 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.
|
public AwsErrorDetails.Builder errorMessage(String errorMessage)
AwsErrorDetails.BuildererrorMessage in interface AwsErrorDetails.BuildererrorMessage - The error message returned by the service.public String errorMessage()
AwsErrorDetails.BuildererrorMessage in interface AwsErrorDetails.Builderpublic AwsErrorDetails.Builder errorCode(String errorCode)
AwsErrorDetails.BuildererrorCode in interface AwsErrorDetails.BuildererrorCode - The error code returned by the service.public String errorCode()
AwsErrorDetails.BuildererrorCode in interface AwsErrorDetails.Builderpublic AwsErrorDetails.Builder serviceName(String serviceName)
AwsErrorDetails.BuilderserviceName in interface AwsErrorDetails.BuilderserviceName - The name of the service.public String serviceName()
AwsErrorDetails.BuilderserviceName in interface AwsErrorDetails.Builderpublic AwsErrorDetails.Builder sdkHttpResponse(SdkHttpResponse sdkHttpResponse)
AwsErrorDetails.BuilderSdkHttpResponse returned on the error response from the service.sdkHttpResponse in interface AwsErrorDetails.BuildersdkHttpResponse - The HTTP response from the service.public SdkHttpResponse sdkHttpResponse()
AwsErrorDetails.BuildersdkHttpResponse in interface AwsErrorDetails.BuilderSdkHttpResponse.public AwsErrorDetails.Builder rawResponse(SdkBytes rawResponse)
AwsErrorDetails.BuilderrawResponse in interface AwsErrorDetails.BuilderrawResponse - raw byte response from the service.public SdkBytes rawResponse()
AwsErrorDetails.BuilderrawResponse in interface AwsErrorDetails.Builderpublic AwsErrorDetails build()
AwsErrorDetails.BuilderAwsErrorDetails with the properties set on this builder.build in interface AwsErrorDetails.BuilderAwsErrorDetails.Copyright © 2022. All rights reserved.