Interface AwsErrorDetails.Builder

Enclosing class:
AwsErrorDetails

public static interface AwsErrorDetails.Builder
  • Method Details

    • 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 the SdkHttpResponse 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

      Creates a new AwsErrorDetails with the properties set on this builder.
      Returns:
      The new AwsErrorDetails.