Class SdkServiceException.BuilderImpl
java.lang.Object
software.amazon.awssdk.core.exception.SdkException.BuilderImpl
software.amazon.awssdk.core.exception.SdkServiceException.BuilderImpl
- All Implemented Interfaces:
SdkException.Builder,SdkServiceException.Builder,SdkPojo,Buildable
- Enclosing class:
- SdkServiceException
protected static class SdkServiceException.BuilderImpl
extends SdkException.BuilderImpl
implements SdkServiceException.Builder
-
Field Summary
FieldsFields inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, message, numAttempts, writableStackTrace -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newSdkExceptionwith the specified properties.Specifies the exception that caused this exception to occur.The extendedRequestId returned by the called service.extendedRequestId(String extendedRequestId) Specifies the extendedRequestId returned by the called service.intSpecifies the details of this exception.numAttempts(Integer numAttempts) The requestId returned by the called service.Specifies the requestId returned by the called service.voidsetExtendedRequestId(String extendedRequestId) voidsetRequestId(String requestId) voidsetStatusCode(int statusCode) intThe status code returned by the service.statusCode(int statusCode) Specifies the status code returned by the service.writableStackTrace(Boolean writableStackTrace) Specifies whether the stack trace in this exception can be written.Methods inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, getCause, getMessage, getNumAttempts, getWritableStackTrace, message, numAttempts, setAttemptCount, setCause, setMessage, setWritableStackTrace, writableStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, numAttempts, writableStackTraceMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField
-
Field Details
-
requestId
-
extendedRequestId
-
statusCode
protected int statusCode
-
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
message
Description copied from interface:SdkException.BuilderSpecifies the details of this exception.- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder- Overrides:
messagein classSdkException.BuilderImpl- Parameters:
message- The details of this exception.- Returns:
- This method for object chaining
-
cause
Description copied from interface:SdkException.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder- Overrides:
causein classSdkException.BuilderImpl- Parameters:
cause- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
writableStackTrace
Description copied from interface:SdkException.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder- Overrides:
writableStackTracein classSdkException.BuilderImpl- Parameters:
writableStackTrace- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
numAttempts
- Specified by:
numAttemptsin interfaceSdkException.Builder- Specified by:
numAttemptsin interfaceSdkServiceException.Builder- Overrides:
numAttemptsin classSdkException.BuilderImpl- Parameters:
numAttempts- The attempt count- Returns:
- This method for object chaining
-
requestId
Description copied from interface:SdkServiceException.BuilderSpecifies the requestId returned by the called service.- Specified by:
requestIdin interfaceSdkServiceException.Builder- Parameters:
requestId- A string that identifies the request made to a service.- Returns:
- This object for method chaining.
-
extendedRequestId
Description copied from interface:SdkServiceException.BuilderSpecifies the extendedRequestId returned by the called service.- Specified by:
extendedRequestIdin interfaceSdkServiceException.Builder- Parameters:
extendedRequestId- A string that identifies the request made to a service.- Returns:
- This object for method chaining.
-
requestId
Description copied from interface:SdkServiceException.BuilderThe requestId returned by the called service.- Specified by:
requestIdin interfaceSdkServiceException.Builder- Returns:
- String containing the requestId
-
getRequestId
-
setRequestId
-
extendedRequestId
Description copied from interface:SdkServiceException.BuilderThe extendedRequestId returned by the called service.- Specified by:
extendedRequestIdin interfaceSdkServiceException.Builder- Returns:
- String containing the extendedRequestId
-
getExtendedRequestId
-
setExtendedRequestId
-
statusCode
Description copied from interface:SdkServiceException.BuilderSpecifies the status code returned by the service.- Specified by:
statusCodein interfaceSdkServiceException.Builder- Parameters:
statusCode- an int containing the status code returned by the service.- Returns:
- This method for object chaining.
-
getStatusCode
public int getStatusCode() -
setStatusCode
public void setStatusCode(int statusCode) -
statusCode
public int statusCode()Description copied from interface:SdkServiceException.BuilderThe status code returned by the service.- Specified by:
statusCodein interfaceSdkServiceException.Builder- Returns:
- int containing the status code
-
build
Description copied from interface:SdkException.BuilderCreates a newSdkExceptionwith the specified properties.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkException.Builder- Specified by:
buildin interfaceSdkServiceException.Builder- Overrides:
buildin classSdkException.BuilderImpl- Returns:
- The new
SdkException.
-
sdkFields
-