Interface ErrorDetail.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ErrorDetail.Builder,ErrorDetail>, SdkBuilder<ErrorDetail.Builder,ErrorDetail>, SdkPojo
Enclosing class:
ErrorDetail

public static interface ErrorDetail.Builder extends SdkPojo, CopyableBuilder<ErrorDetail.Builder,ErrorDetail>
  • Method Details

    • errorCode

      ErrorDetail.Builder errorCode(String errorCode)

      The name or code associated with the error.

      Parameters:
      errorCode - The name or code associated with the error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorData

      ErrorDetail.Builder errorData(Collection<? extends Map<String,String>> errorData)

      A list of key value pairs that provides contextual information about why an error occured.

      Parameters:
      errorData - A list of key value pairs that provides contextual information about why an error occured.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorData

      ErrorDetail.Builder errorData(Map<String,String>... errorData)

      A list of key value pairs that provides contextual information about why an error occured.

      Parameters:
      errorData - A list of key value pairs that provides contextual information about why an error occured.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      ErrorDetail.Builder errorMessage(String errorMessage)

      A message that describes the error.

      Parameters:
      errorMessage - A message that describes the error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.