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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SdkServiceException
build()
Creates a newSdkServiceException
with the specified properties.SdkServiceException.Builder
cause(Throwable cause)
Specifies the exception that caused this exception to occur.String
extendedRequestId()
The extendedRequestId returned by the called service.SdkServiceException.Builder
extendedRequestId(String extendedRequestId)
Specifies the extendedRequestId returned by the called service.SdkServiceException.Builder
message(String message)
Specifies the details of this exception.String
requestId()
The requestId returned by the called service.SdkServiceException.Builder
requestId(String requestId)
Specifies the requestId returned by the called service.int
statusCode()
The status code returned by the service.SdkServiceException.Builder
statusCode(int statusCode)
Specifies the status code returned by the service.SdkServiceException.Builder
writableStackTrace(Boolean writableStackTrace)
Specifies whether the stack trace in this exception can be written.-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
message
SdkServiceException.Builder message(String message)
Description copied from interface:SdkException.Builder
Specifies the details of this exception.- Specified by:
message
in interfaceSdkException.Builder
- Parameters:
message
- The details of this exception.- Returns:
- This method for object chaining
-
cause
SdkServiceException.Builder cause(Throwable cause)
Description copied from interface:SdkException.Builder
Specifies the exception that caused this exception to occur.- Specified by:
cause
in interfaceSdkException.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 interfaceSdkException.Builder
- Parameters:
writableStackTrace
- Whether the stack trace can be written.- 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
SdkServiceException build()
Creates a newSdkServiceException
with the specified properties.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkException.Builder
- Returns:
- The new
SdkServiceException
.
-
-