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
Fields Modifier and Type Field Description protected StringextendedRequestIdprotected StringrequestIdprotected intstatusCode-
Fields inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, message, numAttempts, writableStackTrace
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(SdkServiceException ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkServiceExceptionbuild()Creates a newSdkExceptionwith 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.StringgetExtendedRequestId()StringgetRequestId()intgetStatusCode()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.List<SdkField<?>>sdkFields()voidsetExtendedRequestId(String extendedRequestId)voidsetRequestId(String requestId)voidsetStatusCode(int statusCode)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 class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, getCause, getMessage, getNumAttempts, getWritableStackTrace, message, numAttempts, setAttemptCount, setCause, setMessage, setWritableStackTrace, writableStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, numAttempts, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(SdkServiceException ex)
-
-
Method Detail
-
message
public SdkServiceException.Builder message(String 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
public SdkServiceException.Builder cause(Throwable 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
public 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- 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
public SdkServiceException.Builder numAttempts(Integer 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
public SdkServiceException.Builder requestId(String 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
public SdkServiceException.Builder extendedRequestId(String 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
public String requestId()
Description copied from interface:SdkServiceException.BuilderThe requestId returned by the called service.- Specified by:
requestIdin interfaceSdkServiceException.Builder- Returns:
- String containing the requestId
-
getRequestId
public String getRequestId()
-
setRequestId
public void setRequestId(String requestId)
-
extendedRequestId
public String extendedRequestId()
Description copied from interface:SdkServiceException.BuilderThe extendedRequestId returned by the called service.- Specified by:
extendedRequestIdin interfaceSdkServiceException.Builder- Returns:
- String containing the extendedRequestId
-
getExtendedRequestId
public String getExtendedRequestId()
-
setExtendedRequestId
public void setExtendedRequestId(String extendedRequestId)
-
statusCode
public SdkServiceException.Builder statusCode(int 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
public SdkServiceException 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.
-
-