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 SummaryAll 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.SdkServiceException.BuildernumAttempts(Integer numAttempts)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.Buildercause, message, numAttempts, writableStackTrace
 - 
Methods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
 
- 
 
- 
- 
- 
Method Detail- 
messageSdkServiceException.Builder message(String message) Description copied from interface:SdkException.BuilderSpecifies the details of this exception.- Specified by:
- messagein interface- SdkException.Builder
- Parameters:
- message- The details of this exception.
- Returns:
- This method for object chaining
 
 - 
causeSdkServiceException.Builder cause(Throwable cause) Description copied from interface:SdkException.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
- causein interface- SdkException.Builder
- Parameters:
- cause- The exception that caused this exception to occur.
- Returns:
- This object for method chaining.
 
 - 
writableStackTraceSdkServiceException.Builder writableStackTrace(Boolean writableStackTrace) Description copied from interface:SdkException.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
- writableStackTracein interface- SdkException.Builder
- Parameters:
- writableStackTrace- Whether the stack trace can be written.
- Returns:
- This method for object chaining
 
 - 
numAttemptsSdkServiceException.Builder numAttempts(Integer numAttempts) - Specified by:
- numAttemptsin interface- SdkException.Builder
- Parameters:
- numAttempts- The attempt count
- Returns:
- This method for object chaining
 
 - 
requestIdSdkServiceException.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.
 
 - 
requestIdString requestId() The requestId returned by the called service.- Returns:
- String containing the requestId
 
 - 
extendedRequestIdSdkServiceException.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.
 
 - 
extendedRequestIdString extendedRequestId() The extendedRequestId returned by the called service.- Returns:
- String containing the extendedRequestId
 
 - 
statusCodeSdkServiceException.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.
 
 - 
statusCodeint statusCode() The status code returned by the service.- Returns:
- int containing the status code
 
 - 
buildSdkServiceException build() Creates a newSdkServiceExceptionwith the specified properties.- Specified by:
- buildin interface- Buildable
- Specified by:
- buildin interface- SdkException.Builder
- Returns:
- The new SdkServiceException.
 
 
- 
 
-