Interface SdkServiceException.Builder
- 
- All Superinterfaces:
 software.amazon.awssdk.utils.builder.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 SdkServiceExceptionbuild()Creates a newSdkServiceExceptionwith the specified properties.SdkServiceException.Buildercause(Throwable cause)Specifies the exception that caused this exception to occur.StringextendedRequestId()The extendedRequestId returned by the called service.SdkServiceException.BuilderextendedRequestId(String extendedRequestId)Specifies the extendedRequestId returned by the called service.SdkServiceException.Buildermessage(String message)Specifies the details of this exception.StringrequestId()The requestId returned by the called service.SdkServiceException.BuilderrequestId(String requestId)Specifies the requestId returned by the called service.intstatusCode()The status code returned by the service.SdkServiceException.BuilderstatusCode(int statusCode)Specifies the status code returned by the service.SdkServiceException.BuilderwritableStackTrace(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.BuilderSpecifies the details of this exception.- Specified by:
 messagein 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.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
 causein 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.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
 writableStackTracein 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 newSdkServiceExceptionwith the specified properties.- Specified by:
 buildin interfacesoftware.amazon.awssdk.utils.builder.Buildable- Specified by:
 buildin interfaceSdkException.Builder- Returns:
 - The new 
SdkServiceException. 
 
 - 
 
 -