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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsErrorDetailsbuild()Creates a newAwsErrorDetailswith the properties set on this builder.StringerrorCode()The error code specified by the service.AwsErrorDetails.BuildererrorCode(String errorCode)Specifies the error code returned by the service.StringerrorMessage()The error message specified by the service.AwsErrorDetails.BuildererrorMessage(String errorMessage)Specifies the error message returned by the service.SdkBytesrawResponse()The raw response from the service.AwsErrorDetails.BuilderrawResponse(SdkBytes rawResponse)Specifies raw http response from the service.SdkHttpResponsesdkHttpResponse()The HTTP response returned from the service.AwsErrorDetails.BuildersdkHttpResponse(SdkHttpResponse sdkHttpResponse)Specifies theSdkHttpResponsereturned on the error response from the service.StringserviceName()Returns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.AwsErrorDetails.BuilderserviceName(String serviceName)Specifies the name of the service that returned this error.
-
-
-
Method Detail
-
errorMessage
public AwsErrorDetails.Builder errorMessage(String 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
public String 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
public AwsErrorDetails.Builder errorCode(String 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
public String 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
public AwsErrorDetails.Builder serviceName(String 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
public String 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
public AwsErrorDetails.Builder sdkHttpResponse(SdkHttpResponse 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
public SdkHttpResponse sdkHttpResponse()
Description copied from interface:AwsErrorDetails.BuilderThe HTTP response returned from the service.- Specified by:
sdkHttpResponsein interfaceAwsErrorDetails.Builder- Returns:
SdkHttpResponse.
-
rawResponse
public AwsErrorDetails.Builder rawResponse(SdkBytes 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
public SdkBytes 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
public AwsErrorDetails build()
Description copied from interface:AwsErrorDetails.BuilderCreates a newAwsErrorDetailswith the properties set on this builder.- Specified by:
buildin interfaceAwsErrorDetails.Builder- Returns:
- The new
AwsErrorDetails.
-
-