Interface SdkServiceException.Builder

All Superinterfaces:
Buildable, SdkException.Builder, SdkPojo
All Known Implementing Classes:
SdkServiceException.BuilderImpl
Enclosing class:
SdkServiceException

public static interface SdkServiceException.Builder extends SdkException.Builder, SdkPojo
  • Method Details

    • message

      Description copied from interface: SdkException.Builder
      Specifies the details of this exception.
      Specified by:
      message in interface SdkException.Builder
      Parameters:
      message - The details of this exception.
      Returns:
      This method for object chaining
    • cause

      Description copied from interface: SdkException.Builder
      Specifies the exception that caused this exception to occur.
      Specified by:
      cause in interface SdkException.Builder
      Parameters:
      cause - The exception that caused this exception to occur.
      Returns:
      This object for method chaining.
    • writableStackTrace

      SdkServiceException.Builder writableStackTrace(Boolean writableStackTrace)
      Description copied from interface: SdkException.Builder
      Specifies whether the stack trace in this exception can be written.
      Specified by:
      writableStackTrace in interface SdkException.Builder
      Parameters:
      writableStackTrace - Whether the stack trace can be written.
      Returns:
      This method for object chaining
    • numAttempts

      SdkServiceException.Builder numAttempts(Integer numAttempts)
      Specified by:
      numAttempts in interface SdkException.Builder
      Parameters:
      numAttempts - The attempt count
      Returns:
      This method for object chaining
    • requestId

      SdkServiceException.Builder requestId(String requestId)
      Specifies the requestId returned by the called service.
      Parameters:
      requestId - A string that identifies the request made to a service.
      Returns:
      This object for method chaining.
    • requestId

      String requestId()
      The requestId returned by the called service.
      Returns:
      String containing the requestId
    • extendedRequestId

      SdkServiceException.Builder extendedRequestId(String extendedRequestId)
      Specifies the extendedRequestId returned by the called service.
      Parameters:
      extendedRequestId - A string that identifies the request made to a service.
      Returns:
      This object for method chaining.
    • extendedRequestId

      String extendedRequestId()
      The extendedRequestId returned by the called service.
      Returns:
      String containing the extendedRequestId
    • statusCode

      SdkServiceException.Builder statusCode(int statusCode)
      Specifies the status code returned by the service.
      Parameters:
      statusCode - an int containing the status code returned by the service.
      Returns:
      This method for object chaining.
    • statusCode

      int statusCode()
      The status code returned by the service.
      Returns:
      int containing the status code
    • build

      Creates a new SdkServiceException with the specified properties.
      Specified by:
      build in interface Buildable
      Specified by:
      build in interface SdkException.Builder
      Returns:
      The new SdkServiceException.